mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 20:22:12 +00:00
Removed redundant call.
This commit is contained in:
1 parent
3c52d51ade
commit
ccfb2bd04b
1 file changed
+4
-5
@@ -55,17 +55,16 @@ public class EnderLiquidConduitNetwork extends AbstractConduitNetwork<ILiquidCon
|
||||
if(drained == null || drained.amount <= 0 || !matchedFilter(drained, con, conDir, true)) {
|
||||
return false;
|
||||
}
|
||||
int amountAccepted = fillFrom(tank, drained, false);
|
||||
int amountAccepted = fillFrom(tank, drained, true);
|
||||
if(amountAccepted <= 0) {
|
||||
return false;
|
||||
}
|
||||
drained = tank.externalTank.drain(conDir.getOpposite(), amountAccepted, true);
|
||||
if(drained == null || drained.amount <= 0) {
|
||||
return false;
|
||||
}
|
||||
int filled = fillFrom(tank, drained, true);
|
||||
if(drained.amount != filled) {
|
||||
Log.warn("EnderLiquidConduit.extractFrom: Extracted fluid volume is not equal to inserted volume. Drained=" + drained.amount + " filled=" + filled + " Fluid: " + drained + " Accepted=" + amountAccepted);
|
||||
}
|
||||
if(drained.amount != amountAccepted) {
|
||||
Log.warn("EnderLiquidConduit.extractFrom: Extracted fluid volume is not equal to inserted volume. Drained=" + drained.amount + " filled=" + amountAccepted + " Fluid: " + drained + " Accepted=" + amountAccepted);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user