Update PipeTransportFluids.java

This commit is contained in:
Anton 2014-04-12 23:42:01 +03:00
parent 591313df43
commit daa9ab82fb

View file

@ -337,7 +337,7 @@ public class PipeTransportFluids extends PipeTransport implements IFluidHandler
private void moveFluids() { private void moveFluids() {
short newTimeSlot = (short) (container.getWorldObj().getTotalWorldTime() % travelDelay); short newTimeSlot = (short) (container.getWorldObj().getTotalWorldTime() % travelDelay);
short outputCount = computeCurrentConnectionStatesAndTickFlows(newTimeSlot > 0 ? newTimeSlot : 0); short outputCount = computeCurrentConnectionStatesAndTickFlows(newTimeSlot > 0 && newTimeSlot < travelDelay ? newTimeSlot : 0);
moveFromPipe(outputCount); moveFromPipe(outputCount);
moveFromCenter(outputCount); moveFromCenter(outputCount);
moveToCenter(); moveToCenter();