mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Fix major derp at the "instant" checks
This commit is contained in:
parent
9642cbe2f4
commit
2d713b90d1
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user