1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-02 10:37:54 +00:00

Fixed bad assumption about empty ItemStacks being reset to ItemStack.EMPTY. Items no longer transfer into an inventory as a different item than they began.

This commit is contained in:
David Queneau
2021-02-01 00:02:28 -08:00
parent 83e70377f7
commit 89d5211bd7

View File

@@ -273,7 +273,7 @@ public class InventoryMethods implements GenericSource
// Mutate destination and source ItemStack // Mutate destination and source ItemStack
ItemStack destination = to.getStack(toSlot); ItemStack destination = to.getStack(toSlot);
if (destination == ItemStack.EMPTY) { if (destination.isEmpty()) {
ItemStack newStack = source.copy(); ItemStack newStack = source.copy();
newStack.setCount(count); newStack.setCount(count);
to.setStack(toSlot, newStack); to.setStack(toSlot, newStack);