Fix bug in drawers

This commit is contained in:
Raoul Van den Berge
2016-06-16 21:24:06 +02:00
parent 5f10ea1d2d
commit dd3a557608

View File

@@ -37,7 +37,7 @@ public class DrawerStorage extends ExternalStorage {
int remainingSpace = getCapacity() - getStored(); int remainingSpace = getCapacity() - getStored();
if (remainingSpace <= 0) { if (remainingSpace <= 0) {
return stack; return ItemHandlerHelper.copyStackWithSize(stack, size);
} }
if (!simulate) { if (!simulate) {
@@ -57,7 +57,7 @@ public class DrawerStorage extends ExternalStorage {
int remainingSpace = getCapacity() - getStored(); int remainingSpace = getCapacity() - getStored();
if (remainingSpace <= 0) { if (remainingSpace <= 0) {
return stack; return ItemHandlerHelper.copyStackWithSize(stack, size);
} }
if (!simulate) { if (!simulate) {