aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0301-Prevent-consuming-the-wrong-itemstack.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0301-Prevent-consuming-the-wrong-itemstack.patch')
-rw-r--r--patches/server/0301-Prevent-consuming-the-wrong-itemstack.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0301-Prevent-consuming-the-wrong-itemstack.patch b/patches/server/0301-Prevent-consuming-the-wrong-itemstack.patch
index 40fdb056a9..4e1c08cde3 100644
--- a/patches/server/0301-Prevent-consuming-the-wrong-itemstack.patch
+++ b/patches/server/0301-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 47b1a4ec278cf9762c9eb9c1448cf78912b7d77a..ebdc95a04400ab71a261a1a4fd6e4477ee9d3122 100644
+index cc5cafa8388d96e18494d3c89f36d1654ea44f7d..58dacb52494972698b2d3740ed1cbe53e5264771 100644
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
-@@ -3821,9 +3821,14 @@ public abstract class LivingEntity extends Entity implements Attackable {
+@@ -3811,9 +3811,14 @@ public abstract class LivingEntity extends Entity implements Attackable {
}
public void startUsingItem(InteractionHand hand) {
@@ -24,7 +24,7 @@ index 47b1a4ec278cf9762c9eb9c1448cf78912b7d77a..ebdc95a04400ab71a261a1a4fd6e4477
this.useItem = itemstack;
this.useItemRemaining = itemstack.getUseDuration();
if (!this.level().isClientSide) {
-@@ -3903,6 +3908,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
+@@ -3893,6 +3898,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
this.releaseUsingItem();
} else {
if (!this.useItem.isEmpty() && this.isUsingItem()) {
@@ -32,7 +32,7 @@ index 47b1a4ec278cf9762c9eb9c1448cf78912b7d77a..ebdc95a04400ab71a261a1a4fd6e4477
this.triggerItemUseEffects(this.useItem, 16);
// CraftBukkit start - fire PlayerItemConsumeEvent
ItemStack itemstack;
-@@ -3937,8 +3943,8 @@ public abstract class LivingEntity extends Entity implements Attackable {
+@@ -3927,8 +3933,8 @@ public abstract class LivingEntity extends Entity implements Attackable {
}
this.stopUsingItem();