2021-08-14 11:51:03 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
|
|
|
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
|
2021-11-25 00:46:26 +01:00
|
|
|
index 89921ffeae7cc715aa18cbf8687e7c8e612e5612..59db245fe11384282af84ec1d5be08ab0e9484ca 100644
|
2021-08-14 11:51:03 +02:00
|
|
|
--- a/src/main/java/net/minecraft/core/dispenser/DispenseItemBehavior.java
|
|
|
|
+++ b/src/main/java/net/minecraft/core/dispenser/DispenseItemBehavior.java
|
2021-11-25 00:46:26 +01:00
|
|
|
@@ -634,8 +634,7 @@ public interface DispenseItemBehavior {
|
2021-08-14 11:51:03 +02:00
|
|
|
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));
|
|
|
|
}
|