Fix kinisis pipes when doDaylightCycle is set to false. Fixes #1152
This commit is contained in:
parent
fac6e9236e
commit
67772a9c59
1 changed files with 10 additions and 10 deletions
|
@ -7,6 +7,13 @@
|
||||||
*/
|
*/
|
||||||
package buildcraft.transport;
|
package buildcraft.transport;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import buildcraft.BuildCraftCore;
|
import buildcraft.BuildCraftCore;
|
||||||
import buildcraft.api.core.SafeTimeTracker;
|
import buildcraft.api.core.SafeTimeTracker;
|
||||||
import buildcraft.api.gates.ITrigger;
|
import buildcraft.api.gates.ITrigger;
|
||||||
|
@ -17,7 +24,6 @@ import buildcraft.api.power.PowerHandler.Type;
|
||||||
import buildcraft.api.transport.IPipeTile.PipeType;
|
import buildcraft.api.transport.IPipeTile.PipeType;
|
||||||
import buildcraft.core.DefaultProps;
|
import buildcraft.core.DefaultProps;
|
||||||
import buildcraft.core.proxy.CoreProxy;
|
import buildcraft.core.proxy.CoreProxy;
|
||||||
import buildcraft.core.utils.Utils;
|
|
||||||
import buildcraft.transport.network.PacketPowerUpdate;
|
import buildcraft.transport.network.PacketPowerUpdate;
|
||||||
import buildcraft.transport.pipes.PipePowerCobblestone;
|
import buildcraft.transport.pipes.PipePowerCobblestone;
|
||||||
import buildcraft.transport.pipes.PipePowerDiamond;
|
import buildcraft.transport.pipes.PipePowerDiamond;
|
||||||
|
@ -25,12 +31,6 @@ import buildcraft.transport.pipes.PipePowerGold;
|
||||||
import buildcraft.transport.pipes.PipePowerQuartz;
|
import buildcraft.transport.pipes.PipePowerQuartz;
|
||||||
import buildcraft.transport.pipes.PipePowerStone;
|
import buildcraft.transport.pipes.PipePowerStone;
|
||||||
import buildcraft.transport.pipes.PipePowerWood;
|
import buildcraft.transport.pipes.PipePowerWood;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
|
||||||
|
|
||||||
public class PipeTransportPower extends PipeTransport {
|
public class PipeTransportPower extends PipeTransport {
|
||||||
|
|
||||||
|
@ -278,8 +278,8 @@ public class PipeTransportPower extends PipeTransport {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void step() {
|
private void step() {
|
||||||
if (currentDate != container.worldObj.getWorldTime()) {
|
if (currentDate != container.worldObj.getTotalWorldTime()) {
|
||||||
currentDate = container.worldObj.getWorldTime();
|
currentDate = container.worldObj.getTotalWorldTime();
|
||||||
|
|
||||||
powerQuery = nextPowerQuery;
|
powerQuery = nextPowerQuery;
|
||||||
nextPowerQuery = new int[6];
|
nextPowerQuery = new int[6];
|
||||||
|
@ -344,7 +344,7 @@ public class PipeTransportPower extends PipeTransport {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
currentDate = container.worldObj.getWorldTime();
|
currentDate = container.worldObj.getTotalWorldTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue