Fixed Disk Drive giving incorrect capacity for creative and debug storage disks
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
- Fixed Interface extracting from itself when trying to keep items in stock (raoulvdberge)
|
- 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 Quartz Enriched Iron recipe only giving 1 instead of 4 (jhjaggars)
|
||||||
- Fixed Debug Storage disks not working correctly (raoulvdberge)
|
- 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 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 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)
|
- The Relay now reacts instantly to a redstone signal again, removed throttling for it (raoulvdberge)
|
||||||
|
|||||||
@@ -51,12 +51,20 @@ public class TileDiskDrive extends TileNode<NetworkNodeDiskDrive> {
|
|||||||
|
|
||||||
for (IStorageDisk storage : tile.getNode().getItemStorages()) {
|
for (IStorageDisk storage : tile.getNode().getItemStorages()) {
|
||||||
if (storage != null) {
|
if (storage != null) {
|
||||||
|
if (storage.getCapacity() == -1) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
capacity += storage.getCapacity();
|
capacity += storage.getCapacity();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (IStorageDisk storage : tile.getNode().getFluidStorages()) {
|
for (IStorageDisk storage : tile.getNode().getFluidStorages()) {
|
||||||
if (storage != null) {
|
if (storage != null) {
|
||||||
|
if (storage.getCapacity() == -1) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
capacity += storage.getCapacity();
|
capacity += storage.getCapacity();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user