Also catch getSlot() < 0 for the InventoryClickEvent.

This commit is contained in:
asofold 2013-03-14 21:30:19 +01:00
parent 677aef45cd
commit 0fc3b54db9

View File

@ -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;
}