diff --git a/src/main/java/dev/heliosares/auxprotect/spigot/listeners/InventoryListener.java b/src/main/java/dev/heliosares/auxprotect/spigot/listeners/InventoryListener.java index 649022a..ee4a8b4 100644 --- a/src/main/java/dev/heliosares/auxprotect/spigot/listeners/InventoryListener.java +++ b/src/main/java/dev/heliosares/auxprotect/spigot/listeners/InventoryListener.java @@ -47,6 +47,10 @@ public class InventoryListener implements Listener { } private void log(HumanEntity player, Inventory inv, boolean state) { + if(inv == null) { + return; + } + int count = 0; for (ItemStack item : inv.getContents()) { if (item == null)