diff --git a/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java b/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java index 0ec89b9..40e544d 100644 --- a/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java +++ b/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java @@ -92,7 +92,7 @@ public class SWInventory implements Listener { return; e.setCancelled(true); - if(callbacks.containsKey(e.getRawSlot())) + if(callbacks.containsKey(e.getRawSlot()) && callbacks.get(e.getRawSlot()) != null) callbacks.get(e.getRawSlot()).clicked(e.getClick()); }