Fix major derp at the "instant" checks

This commit is contained in:
Evenprime 2012-02-11 21:00:57 +01:00
parent 9642cbe2f4
commit 2d713b90d1

View File

@ -67,7 +67,7 @@ public class InventoryCheckListener implements Listener, EventManager {
@EventHandler(priority = EventPriority.LOWEST)
public void interact(final PlayerInteractEvent event) {
if(!event.hasItem() || event.getAction() != Action.RIGHT_CLICK_AIR || event.getAction() != Action.RIGHT_CLICK_BLOCK)
if(!event.hasItem() || !(event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK))
return;
NoCheatPlayer player = plugin.getPlayer(event.getPlayer());