Fixed Disk Drive giving incorrect capacity for creative and debug storage disks

This commit is contained in:
raoulvdberge
2017-06-24 00:09:54 +02:00
parent e4b67d4008
commit 4237bbe127
2 changed files with 9 additions and 0 deletions

View File

@@ -51,12 +51,20 @@ public class TileDiskDrive extends TileNode<NetworkNodeDiskDrive> {
for (IStorageDisk storage : tile.getNode().getItemStorages()) {
if (storage != null) {
if (storage.getCapacity() == -1) {
return -1;
}
capacity += storage.getCapacity();
}
}
for (IStorageDisk storage : tile.getNode().getFluidStorages()) {
if (storage != null) {
if (storage.getCapacity() == -1) {
return -1;
}
capacity += storage.getCapacity();
}
}