Archiviert
13
0

Hotfix spigots own fault

Dieser Commit ist enthalten in:
Lixfel 2020-12-28 17:00:27 +01:00
Ursprung 2864092acb
Commit e1bf1ed6c8

Datei anzeigen

@ -0,0 +1,19 @@
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());