Archiviert
13
0
Dieses Repository wurde am 2021-12-14 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
SteamSpigot/SteamWar-Patches/Fix_spigots_inventory_close_bugfix.patch
2020-12-28 17:00:27 +01:00

20 Zeilen
1.1 KiB
Diff

Index: src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java (revision 3bf75f9c719825476df0f5c8979efcd01105f93e)
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java (date 1609170790072)
@@ -1255,10 +1255,6 @@
}
public static void handleInventoryCloseEvent(EntityHuman human) {
- // SPIGOT-5799 - no need to fire for when no inventory open
- if (human.activeContainer == human.defaultContainer) {
- return;
- }
InventoryCloseEvent event = new InventoryCloseEvent(human.activeContainer.getBukkitView());
human.world.getServer().getPluginManager().callEvent(event);
human.activeContainer.transferTo(human.defaultContainer, human.getBukkitEntity());