Fixes some issues with the storage chests, closes #1481

This commit is contained in:
modmuss50 2018-05-04 12:06:40 +01:00
parent 9a6d9765bd
commit 1c10c199ae
3 changed files with 55 additions and 5 deletions

View file

@ -143,6 +143,8 @@ public class TileTechStorageBase extends TileLegacyMachineBase
if (!this.storedItem.isEmpty()) {
this.storedItem.setCount(Math.min(tagCompound.getInteger("storedQuantity"), this.maxCapacity));
}
inventory.readFromNBT(tagCompound);
}
@Override
@ -163,7 +165,7 @@ public class TileTechStorageBase extends TileLegacyMachineBase
} else {
tagCompound.setInteger("storedQuantity", 0);
}
inventory.writeToNBT(tagCompound);
return tagCompound;
}