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

@@ -6,6 +6,7 @@
- Fixed Interface extracting from itself when trying to keep items in stock (raoulvdberge)
- Fixed Quartz Enriched Iron recipe only giving 1 instead of 4 (jhjaggars)
- Fixed Debug Storage disks not working correctly (raoulvdberge)
- Fixed Disk Drive giving incorrect capacity for creative and debug storage disks (raoulvdberge)
- The Portable Grid now exposes an inventory for interaction with other mods or vanilla (raoulvdberge)
- The Interface now exposes the entire storage inventory (if no slots are set for exporting) for interaction with other mods or vanilla (raoulvdberge)
- The Relay now reacts instantly to a redstone signal again, removed throttling for it (raoulvdberge)

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();
}
}