123124125126127128129130131132133
if (gs != null) { if (gs.getMap().getAllowBreaking()) { Block blk = event.getBlock(); gs.addBlockBreak(blk.getTypeId()); gs.removeMapContents(blk.getTypeId()); } else { event.setCancelled(true);