mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-09 12:10:37 +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)
|
@EventHandler(priority = EventPriority.LOWEST)
|
||||||
public void interact(final PlayerInteractEvent event) {
|
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;
|
return;
|
||||||
|
|
||||||
NoCheatPlayer player = plugin.getPlayer(event.getPlayer());
|
NoCheatPlayer player = plugin.getPlayer(event.getPlayer());
|
||||||
|
Loading…
Reference in New Issue
Block a user