mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 10:34:40 +00:00
simplify
This commit is contained in:
1 parent
0c0a6655a5
commit
f31956ecc5
1 file changed
+1
-3
@@ -228,9 +228,7 @@ public class FluidCellInventory implements IFluidCellInventory {
|
||||
if (restrictionLong > 0) {
|
||||
remaining = Math.min((restrictionLong / types) - l.getStackSize(), getRemainingFluidCount());
|
||||
} else {
|
||||
remaining = (((this.getTotalBytes() / types)
|
||||
- (int) Math.ceil((double) l.getStackSize() / singleByteAmount)
|
||||
- getBytesPerType()) * singleByteAmount);
|
||||
remaining = (((getTotalBytes() / types) - getBytesPerType()) * 8) - l.getStackSize();
|
||||
}
|
||||
} else {
|
||||
if (restrictionLong > 0) {
|
||||
|
||||
Reference in new issue
Block a user