aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0810-Expand-PlayerItemMendEvent.patch
diff options
context:
space:
mode:
authorBjarne Koll <[email protected]>2024-10-24 19:29:35 +0200
committerBjarne Koll <[email protected]>2024-10-24 19:29:35 +0200
commit9047541397bdc7dd65114c01de6994870971b851 (patch)
tree51d16e46d45fec824c357f787206c065e5d4c746 /patches/server/0810-Expand-PlayerItemMendEvent.patch
parentfc0543071997267d28cf3c7c4c428d6762b78688 (diff)
downloadPaper-9047541397bdc7dd65114c01de6994870971b851.tar.gz
Paper-9047541397bdc7dd65114c01de6994870971b851.zip
Upstream update
Diffstat (limited to 'patches/server/0810-Expand-PlayerItemMendEvent.patch')
-rw-r--r--patches/server/0810-Expand-PlayerItemMendEvent.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0810-Expand-PlayerItemMendEvent.patch b/patches/server/0810-Expand-PlayerItemMendEvent.patch
index 12d3c700ea..396bdd4c45 100644
--- a/patches/server/0810-Expand-PlayerItemMendEvent.patch
+++ b/patches/server/0810-Expand-PlayerItemMendEvent.patch
@@ -30,10 +30,10 @@ index 3a7af27bb1ce0cbe56bd3760cd400083daf98d4c..bf0838f574fa3fb9654e087d602b8d38
if (l > 0) {
// this.value = l; // CraftBukkit - update exp value of orb for PlayerItemMendEvent calls // Paper - the value field should not be mutated here because it doesn't take "count" into account
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
-index 76d8f0d390abf588886b42b6d2e3ed6f79a4d991..cdc53abb5572fa57b4ec98a694c5583ad0982a05 100644
+index e6a678dee21b51d5f7005c2cf5038089447d0e7c..90187f6412a073a3c89da3eb01310e39406bb69c 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
-@@ -1866,11 +1866,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
+@@ -1880,11 +1880,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
handle.serverLevel(), itemstack, amount
);
int i = Math.min(possibleDurabilityFromXp, itemstack.getDamageValue());