fix chests being opened by specs

This commit is contained in:
xXVevzZXx 2016-06-23 22:16:49 +02:00 committed by cnr
parent 399ab5c363
commit e09df7ccfd

View File

@ -191,7 +191,8 @@ public class OverpoweredBridge extends Bridge
if (event.getClickedBlock().getType() != Material.CHEST)
return;
event.setCancelled(disallow(event.getPlayer(), event.getClickedBlock()));
if (disallow(event.getPlayer(), event.getClickedBlock()))
event.setCancelled(true);
}
}
@ -201,7 +202,8 @@ public class OverpoweredBridge extends Bridge
if (event.getBlockPlaced().getType() != Material.CHEST)
return;
event.setCancelled(disallow(event.getPlayer(), event.getBlock()));
if (disallow(event.getPlayer(), event.getBlock()))
event.setCancelled(true);
}
@EventHandler