fix chests being opened by specs
This commit is contained in:
parent
399ab5c363
commit
e09df7ccfd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user