From a3b76ef171f8b0318f988cfb300f40a3bb18eae1 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 25 Apr 2024 18:18:59 +1000 Subject: [PATCH] Fix item placement By: md_5 --- .../nms-patches/net/minecraft/world/item/ItemStack.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/nms-patches/net/minecraft/world/item/ItemStack.patch b/paper-server/nms-patches/net/minecraft/world/item/ItemStack.patch index 6741456537..8d97c3b087 100644 --- a/paper-server/nms-patches/net/minecraft/world/item/ItemStack.patch +++ b/paper-server/nms-patches/net/minecraft/world/item/ItemStack.patch @@ -144,7 +144,7 @@ + + if (!fertilizeEvent.isCancelled()) { + // Change the stack to its new contents if it hasn't been tampered with. -+ if (this.getCount() == oldCount && Objects.equals(this.components, oldData)) { ++ if (this.getCount() == oldCount && Objects.equals(this.components.asPatch(), oldData)) { + this.restorePatch(newData); + this.setCount(newCount); + } @@ -191,7 +191,7 @@ + ItemSign.openSign = null; // SPIGOT-6758 - Reset on early return + } else { + // Change the stack to its new contents if it hasn't been tampered with. -+ if (this.getCount() == oldCount && Objects.equals(this.components, oldData)) { ++ if (this.getCount() == oldCount && Objects.equals(this.components.asPatch(), oldData)) { + this.restorePatch(newData); + this.setCount(newCount); + }