Minor Stuff

This commit is contained in:
CovertJaguar 2013-01-08 18:12:30 -08:00
parent 389d74b0ba
commit 371189814b
2 changed files with 3 additions and 0 deletions

View file

@ -90,11 +90,13 @@ public class TransactorSimple extends Transactor {
if (space >= remaining) {
if (doAdd) {
stackInSlot.stackSize += remaining;
inventory.setInventorySlotContents(slot, stackInSlot);
}
return remaining;
} else {
if (doAdd) {
stackInSlot.stackSize = stackInSlot.getMaxStackSize();
inventory.setInventorySlotContents(slot, stackInSlot);
}
return space;
}

View file

@ -62,6 +62,7 @@ public class InventoryUtil {
int itemsToMove = stack.getMaxStackSize() - stack.stackSize;
stack.stackSize += itemsToMove;
stackToMove.stackSize -= itemsToMove;
_inventory.setInventorySlotContents(i, stackToMove);
}
}
return stackToMove;