aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0070-Custom-replacement-for-eaten-items.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0070-Custom-replacement-for-eaten-items.patch')
-rw-r--r--patches/server/0070-Custom-replacement-for-eaten-items.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0070-Custom-replacement-for-eaten-items.patch b/patches/server/0070-Custom-replacement-for-eaten-items.patch
index c44df3eced..dc47f3b1f3 100644
--- a/patches/server/0070-Custom-replacement-for-eaten-items.patch
+++ b/patches/server/0070-Custom-replacement-for-eaten-items.patch
@@ -5,10 +5,10 @@ Subject: [PATCH] Custom replacement for eaten items
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
-index 0a573b188111e84290317f2ce5620b6ea6c8b6de..13da8e684172f9f95fbcb63a322b559b733f2469 100644
+index 7f85da14097ad559e5a8f82474f7a71a078b3e77..2356ceb62216086e7ac19e994803d5f6a0f89f83 100644
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
-@@ -3711,10 +3711,11 @@ public abstract class LivingEntity extends Entity implements Attackable {
+@@ -3719,10 +3719,11 @@ public abstract class LivingEntity extends Entity implements Attackable {
this.triggerItemUseEffects(this.useItem, 16);
// CraftBukkit start - fire PlayerItemConsumeEvent
ItemStack itemstack;
@@ -21,7 +21,7 @@ index 0a573b188111e84290317f2ce5620b6ea6c8b6de..13da8e684172f9f95fbcb63a322b559b
this.level().getCraftServer().getPluginManager().callEvent(event);
if (event.isCancelled()) {
-@@ -3728,6 +3729,12 @@ public abstract class LivingEntity extends Entity implements Attackable {
+@@ -3736,6 +3737,12 @@ public abstract class LivingEntity extends Entity implements Attackable {
} else {
itemstack = this.useItem.finishUsingItem(this.level(), this);
}
@@ -34,7 +34,7 @@ index 0a573b188111e84290317f2ce5620b6ea6c8b6de..13da8e684172f9f95fbcb63a322b559b
// CraftBukkit end
if (itemstack != this.useItem) {
-@@ -3735,6 +3742,11 @@ public abstract class LivingEntity extends Entity implements Attackable {
+@@ -3743,6 +3750,11 @@ public abstract class LivingEntity extends Entity implements Attackable {
}
this.stopUsingItem();