145146147148149150151152153154155
if (gs != null) { if (gs.getMap().getAllowBuilding()) { Block blk = event.getBlock(); gs.addBlockPlace(blk.getTypeId()); gs.addBlockPlaceDistance(blk.getTypeId(), blk.getLocation()); gs.addMapContents(blk.getTypeId()); } else {