Fixes some issues with the storage chests, closes #1481
This commit is contained in:
parent
9a6d9765bd
commit
1c10c199ae
3 changed files with 55 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue