aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0293-Prevent-consuming-the-wrong-itemstack.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0293-Prevent-consuming-the-wrong-itemstack.patch')
-rw-r--r--patches/server/0293-Prevent-consuming-the-wrong-itemstack.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0293-Prevent-consuming-the-wrong-itemstack.patch b/patches/server/0293-Prevent-consuming-the-wrong-itemstack.patch
index ec94a92f4d..6da3d543fa 100644
--- a/patches/server/0293-Prevent-consuming-the-wrong-itemstack.patch
+++ b/patches/server/0293-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 63d1c5e8441eb5a32fc298ff2d2f3157cbd19557..ebfea3adbedd2695f645421019a276efbc73ee63 100644
+index 7e684a7df64b64e25ba602c39488712eefdfbcfa..ba78e8b73793292830f3260f9a12c50c698bb881 100644
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
-@@ -3993,9 +3993,14 @@ public abstract class LivingEntity extends Entity implements Attackable {
+@@ -3994,9 +3994,14 @@ public abstract class LivingEntity extends Entity implements Attackable {
}
public void startUsingItem(InteractionHand hand) {
@@ -24,7 +24,7 @@ index 63d1c5e8441eb5a32fc298ff2d2f3157cbd19557..ebfea3adbedd2695f645421019a276ef
this.useItem = itemstack;
this.useItemRemaining = itemstack.getUseDuration(this);
if (!this.level().isClientSide) {
-@@ -4066,6 +4071,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
+@@ -4067,6 +4072,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
this.releaseUsingItem();
} else {
if (!this.useItem.isEmpty() && this.isUsingItem()) {
@@ -32,7 +32,7 @@ index 63d1c5e8441eb5a32fc298ff2d2f3157cbd19557..ebfea3adbedd2695f645421019a276ef
// CraftBukkit start - fire PlayerItemConsumeEvent
ItemStack itemstack;
PlayerItemConsumeEvent event = null; // Paper
-@@ -4103,8 +4109,8 @@ public abstract class LivingEntity extends Entity implements Attackable {
+@@ -4104,8 +4110,8 @@ public abstract class LivingEntity extends Entity implements Attackable {
}
this.stopUsingItem();