1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-28 08:12:18 +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
ItemStack destination = to.getStack(toSlot);
if (destination == ItemStack.EMPTY) {
if (destination.isEmpty()) {
ItemStack newStack = source.copy();
newStack.setCount(count);
to.setStack(toSlot, newStack);