From f12a7f57e1bb6de04ba7f000cf9bbded7aaf3a2e Mon Sep 17 00:00:00 2001 From: Jake Potrebic <15055071+Machine-Maker@users.noreply.github.com> Date: Sat, 14 Aug 2021 02:51:03 -0700 Subject: [PATCH] Clear bucket NBT after dispense (#6391) --- ...0747-Clear-bucket-NBT-after-dispense.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 patches/server/0747-Clear-bucket-NBT-after-dispense.patch diff --git a/patches/server/0747-Clear-bucket-NBT-after-dispense.patch b/patches/server/0747-Clear-bucket-NBT-after-dispense.patch new file mode 100644 index 0000000000..670ca8db2d --- /dev/null +++ b/patches/server/0747-Clear-bucket-NBT-after-dispense.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jake Potrebic +Date: Fri, 13 Aug 2021 15:00:06 -0700 +Subject: [PATCH] Clear bucket NBT after dispense + + +diff --git a/src/main/java/net/minecraft/core/dispenser/DispenseItemBehavior.java b/src/main/java/net/minecraft/core/dispenser/DispenseItemBehavior.java +index 92623ae25249d63efb92be8bd6c95228f9155ad2..0d34026a70c72661a9ba6b319690370e589714cc 100644 +--- a/src/main/java/net/minecraft/core/dispenser/DispenseItemBehavior.java ++++ b/src/main/java/net/minecraft/core/dispenser/DispenseItemBehavior.java +@@ -555,8 +555,7 @@ public interface DispenseItemBehavior { + Item item = Items.BUCKET; + stack.shrink(1); + if (stack.isEmpty()) { +- stack.setItem(Items.BUCKET); +- stack.setCount(1); ++ stack = new ItemStack(item); // Paper - clear tag + } else if (((DispenserBlockEntity) pointer.getEntity()).addItem(new ItemStack(item)) < 0) { + this.defaultDispenseItemBehavior.dispense(pointer, new ItemStack(item)); + }