This commit is contained in:
Acrobot 2013-12-07 18:30:26 +01:00
parent cec194135e
commit 387961d242

View File

@ -78,7 +78,7 @@ public class SignBreak implements Listener {
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR) @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
public static void onBrokenSign(BlockBreakEvent event) { public static void onBrokenSign(BlockBreakEvent event) {
if (BlockUtil.isSign(event.getBlock()) && !event.isCancelled()) { if (ChestShopSign.isValid(event.getBlock()) && !event.isCancelled()) {
sendShopDestroyedEvent((Sign) event.getBlock().getState(), event.getPlayer()); sendShopDestroyedEvent((Sign) event.getBlock().getState(), event.getPlayer());
} }
} }