24 Zeilen
1.3 KiB
Diff
24 Zeilen
1.3 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 fd4a0058bd88f0307c850f6b08d4f6ecd3586f7f)
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java (date 1618244510569)
|
|
@@ -1379,10 +1379,12 @@
|
|
}
|
|
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());
|