diff options
Diffstat (limited to 'patches/server/0303-Prevent-consuming-the-wrong-itemstack.patch')
-rw-r--r-- | patches/server/0303-Prevent-consuming-the-wrong-itemstack.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0303-Prevent-consuming-the-wrong-itemstack.patch b/patches/server/0303-Prevent-consuming-the-wrong-itemstack.patch index b3336ee24c..2ff170a3bf 100644 --- a/patches/server/0303-Prevent-consuming-the-wrong-itemstack.patch +++ b/patches/server/0303-Prevent-consuming-the-wrong-itemstack.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Prevent consuming the wrong itemstack diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java -index 709bcc209299fcc5a593c1b4c93a179af2b5eff1..ba18e2decde409b40ac73c66b015419e219c759a 100644 +index a4eee658ecfc0f25e854c17a7715cb16715859b1..d88b13be2d72cc40c5ca846a55eece1d9ca5fd37 100644 --- a/src/main/java/net/minecraft/world/entity/LivingEntity.java +++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java -@@ -3815,9 +3815,14 @@ public abstract class LivingEntity extends Entity implements Attackable { +@@ -3821,9 +3821,14 @@ public abstract class LivingEntity extends Entity implements Attackable { } public void startUsingItem(InteractionHand hand) { @@ -24,7 +24,7 @@ index 709bcc209299fcc5a593c1b4c93a179af2b5eff1..ba18e2decde409b40ac73c66b015419e this.useItem = itemstack; this.useItemRemaining = itemstack.getUseDuration(); if (!this.level().isClientSide) { -@@ -3897,6 +3902,7 @@ public abstract class LivingEntity extends Entity implements Attackable { +@@ -3903,6 +3908,7 @@ public abstract class LivingEntity extends Entity implements Attackable { this.releaseUsingItem(); } else { if (!this.useItem.isEmpty() && this.isUsingItem()) { @@ -32,7 +32,7 @@ index 709bcc209299fcc5a593c1b4c93a179af2b5eff1..ba18e2decde409b40ac73c66b015419e this.triggerItemUseEffects(this.useItem, 16); // CraftBukkit start - fire PlayerItemConsumeEvent ItemStack itemstack; -@@ -3931,8 +3937,8 @@ public abstract class LivingEntity extends Entity implements Attackable { +@@ -3937,8 +3943,8 @@ public abstract class LivingEntity extends Entity implements Attackable { } this.stopUsingItem(); |