Hotfix spigots own fault
Dieser Commit ist enthalten in:
Ursprung
2864092acb
Commit
e1bf1ed6c8
19
SteamWar-Patches/Fix_spigots_inventory_close_bugfix.patch
Normale Datei
19
SteamWar-Patches/Fix_spigots_inventory_close_bugfix.patch
Normale Datei
@ -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());
|
In neuem Issue referenzieren
Einen Benutzer sperren