mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-21 11:26:13 +01:00
parent
afba9cdbcd
commit
712e4cea66
@ -180,11 +180,9 @@ public class PlayerListener extends ModifyworldListener {
|
||||
public void onPlayerInventoryClick(InventoryClickEvent event) {
|
||||
InventoryHolder holder = event.getInventory().getHolder();
|
||||
|
||||
if (holder instanceof Player) { // do not track inter-inventory stuff
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.getRawSlot() >= event.getView().getTopInventory().getSize()) { // top inventory only
|
||||
if (holder instanceof Player || // do not track inter-inventory stuff
|
||||
event.getRawSlot() >= event.getView().getTopInventory().getSize() || // top inventory only
|
||||
event.getSlotType() != InventoryType.SlotType.OUTSIDE) { // do not track drop
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user