From 4ae2380d579591533fc0b5599ce2ef24b895deea Mon Sep 17 00:00:00 2001 From: Krapht Date: Fri, 23 Aug 2013 21:55:19 +0200 Subject: [PATCH] Probably fixes #991 --- .../transport/PipeTransportFluids.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/common/buildcraft/transport/PipeTransportFluids.java b/common/buildcraft/transport/PipeTransportFluids.java index 51b523e8..4704124e 100644 --- a/common/buildcraft/transport/PipeTransportFluids.java +++ b/common/buildcraft/transport/PipeTransportFluids.java @@ -7,16 +7,8 @@ */ package buildcraft.transport; -import buildcraft.BuildCraftCore; -import buildcraft.api.core.SafeTimeTracker; -import buildcraft.api.gates.ITrigger; -import buildcraft.api.transport.IPipeTile.PipeType; -import buildcraft.core.DefaultProps; -import buildcraft.core.IMachine; -import buildcraft.core.proxy.CoreProxy; -import buildcraft.core.utils.Utils; -import buildcraft.transport.network.PacketFluidUpdate; import java.util.BitSet; + import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.common.ForgeDirection; @@ -28,6 +20,14 @@ import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.fluids.FluidTank; import net.minecraftforge.fluids.FluidTankInfo; import net.minecraftforge.fluids.IFluidHandler; +import buildcraft.BuildCraftCore; +import buildcraft.api.core.SafeTimeTracker; +import buildcraft.api.gates.ITrigger; +import buildcraft.api.transport.IPipeTile.PipeType; +import buildcraft.core.DefaultProps; +import buildcraft.core.IMachine; +import buildcraft.core.proxy.CoreProxy; +import buildcraft.transport.network.PacketFluidUpdate; public class PipeTransportFluids extends PipeTransport implements IFluidHandler { @@ -330,7 +330,7 @@ public class PipeTransportFluids extends PipeTransport implements IFluidHandler } private void moveFluids() { - short newTimeSlot = (short) (container.worldObj.getWorldTime() % travelDelay); + short newTimeSlot = (short) (container.worldObj.getTotalWorldTime() % travelDelay); short outputCount = computeCurrentConnectionStatesAndTickFlows(newTimeSlot); moveFromPipe(outputCount);