diff --git a/paper-server/nms-patches/net/minecraft/world/InventorySubcontainer.patch b/paper-server/nms-patches/net/minecraft/world/InventorySubcontainer.patch index 738adf3ccb..bfd8a63cbc 100644 --- a/paper-server/nms-patches/net/minecraft/world/InventorySubcontainer.patch +++ b/paper-server/nms-patches/net/minecraft/world/InventorySubcontainer.patch @@ -1,6 +1,6 @@ --- a/net/minecraft/world/InventorySubcontainer.java +++ b/net/minecraft/world/InventorySubcontainer.java -@@ -13,13 +13,69 @@ +@@ -13,13 +13,71 @@ import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; @@ -56,8 +56,10 @@ + } + + public InventorySubcontainer(InventorySubcontainer original) { -+ this.a = original.a; -+ this.items = NonNullList.a(ItemStack.b, original.items.toArray(new ItemStack[0])); ++ this(original.a); ++ for (int slot = 0; slot < original.a; slot++) { ++ this.items.set(slot, original.items.get(slot).cloneItemStack()); ++ } + } + public InventorySubcontainer(int i) {