From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Zeanon Date: Wed, 14 Apr 2021 16:22:22 +0200 Subject: [PATCH] Fix spigots inventory close bugfix paper diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index a4cd6c404c2a8d526c4673695aadd001f2b4516f..e7f856d1904943fd809cbee6de8b1d1562085f73 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -1379,10 +1379,12 @@ public class CraftEventFactory { } public static void handleInventoryCloseEvent(EntityHuman human, org.bukkit.event.inventory.InventoryCloseEvent.Reason reason) { // Paper end + //Steamwar // SPIGOT-5799 - no need to fire for when no inventory open - if (human.activeContainer == human.defaultContainer) { + /*if (human.activeContainer == human.defaultContainer) { return; - } + }*/ + //Steamwar End Spigot no????? InventoryCloseEvent event = new InventoryCloseEvent(human.activeContainer.getBukkitView(), reason); // Paper human.world.getServer().getPluginManager().callEvent(event); human.activeContainer.transferTo(human.defaultContainer, human.getBukkitEntity());