diff --git a/nms-patches/net/minecraft/world/item/ItemStack.patch b/nms-patches/net/minecraft/world/item/ItemStack.patch index 674145653..8d97c3b08 100644 --- a/nms-patches/net/minecraft/world/item/ItemStack.patch +++ b/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); + }