diff options
Diffstat (limited to 'patches/server/0535-Fix-PlayerItemConsumeEvent-cancelling-properly.patch')
-rw-r--r-- | patches/server/0535-Fix-PlayerItemConsumeEvent-cancelling-properly.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0535-Fix-PlayerItemConsumeEvent-cancelling-properly.patch b/patches/server/0535-Fix-PlayerItemConsumeEvent-cancelling-properly.patch index 5acc31dd36..23fd145ca7 100644 --- a/patches/server/0535-Fix-PlayerItemConsumeEvent-cancelling-properly.patch +++ b/patches/server/0535-Fix-PlayerItemConsumeEvent-cancelling-properly.patch @@ -9,10 +9,10 @@ till their item is switched. This patch clears the active item when the event is cancelled diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java -index 2dddf7a6f3bab4acf0c9d02a35a0cedb27154dea..89842b86b419117a92f79b7bfb57a4aa4351f9f8 100644 +index 26ac98e0dbcac5d20a013cc1b8f5d70133e23154..dad6481439c54567fd6135b39c9209e74a3acba0 100644 --- a/src/main/java/net/minecraft/world/entity/LivingEntity.java +++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java -@@ -3872,6 +3872,7 @@ public abstract class LivingEntity extends Entity implements Attackable { +@@ -3880,6 +3880,7 @@ public abstract class LivingEntity extends Entity implements Attackable { this.level().getCraftServer().getPluginManager().callEvent(event); if (event.isCancelled()) { |