Another fluid tank fix
This commit is contained in:
parent
1377ec88e8
commit
0b04665055
1 changed files with 3 additions and 2 deletions
|
@ -99,9 +99,10 @@ public class DynamicFluidTank implements IFluidTank
|
|||
return resource.amount;
|
||||
}
|
||||
else {
|
||||
int prevNeeded = getNeeded();
|
||||
|
||||
if(doFill)
|
||||
{
|
||||
int prevNeeded = getNeeded();
|
||||
dynamicTank.structure.fluidStored.amount = getCapacity();
|
||||
|
||||
if(prevNeeded > 0)
|
||||
|
@ -113,7 +114,7 @@ public class DynamicFluidTank implements IFluidTank
|
|||
}
|
||||
}
|
||||
|
||||
return getNeeded();
|
||||
return prevNeeded;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue