mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-10 13:39:23 +01:00
Also catch getSlot() < 0 for the InventoryClickEvent.
This commit is contained in:
parent
677aef45cd
commit
0fc3b54db9
@ -162,7 +162,7 @@ public class InventoryListener extends CheckListener {
|
||||
}
|
||||
final Player player = (Player) entity;
|
||||
final int slot = event.getSlot();
|
||||
if (slot == InventoryView.OUTSIDE){
|
||||
if (slot == InventoryView.OUTSIDE || slot < 0){
|
||||
InventoryData.getData(player).lastClickTime = now;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user