Fix the throughput reading on mechanical pipes.
This commit is contained in:
parent
00a54498dc
commit
e564cdfa3c
1 changed files with 5 additions and 2 deletions
|
@ -209,6 +209,8 @@ public class FluidNetwork extends DynamicNetwork<IFluidHandler, FluidNetwork>
|
|||
|
||||
if(FMLCommonHandler.instance().getEffectiveSide().isServer())
|
||||
{
|
||||
prevTransferAmount = 0;
|
||||
|
||||
if(transferDelay == 0)
|
||||
{
|
||||
didTransfer = false;
|
||||
|
@ -236,7 +238,8 @@ public class FluidNetwork extends DynamicNetwork<IFluidHandler, FluidNetwork>
|
|||
|
||||
if(fluidStored != null)
|
||||
{
|
||||
fluidStored.amount -= tickEmit(fluidStored, true);
|
||||
prevTransferAmount = tickEmit(fluidStored, true);
|
||||
fluidStored.amount -= prevTransferAmount;
|
||||
|
||||
if(fluidStored != null && fluidStored.amount <= 0)
|
||||
{
|
||||
|
@ -470,6 +473,6 @@ public class FluidNetwork extends DynamicNetwork<IFluidHandler, FluidNetwork>
|
|||
@Override
|
||||
public String getFlow()
|
||||
{
|
||||
return Integer.toString(prevTransferAmount);
|
||||
return Integer.toString(prevTransferAmount) + "mB/t";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue