mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-25 14:34:23 +00:00
Remaining capacity for secondary compacting slots no longer return negative values. Fixes #33
This commit is contained in:
1 parent
129e2e64ce
commit
3a333edaf1
1 file changed
+1
-1
@@ -260,7 +260,7 @@ public class TileEntityCompDrawers extends TileEntityDrawersBase implements ISto
|
||||
if (!isSlotValid(slot))
|
||||
return 0;
|
||||
|
||||
int adjCapacity = data[slot].maxCapacity() * convRate[slot] - pooledCount;
|
||||
int adjCapacity = data[0].maxCapacity() * convRate[0] - pooledCount;
|
||||
return adjCapacity / convRate[slot];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user