Fix engine not working if doDaylightCycle is set to false. Fixes #1148

This commit is contained in:
Krapht 2013-08-23 21:41:41 +02:00
parent b08be18fd5
commit 8d1c6dc936

View file

@ -7,10 +7,10 @@
*/ */
package buildcraft.energy; package buildcraft.energy;
import buildcraft.api.transport.IPipeTile.PipeType;
import buildcraft.core.proxy.CoreProxy;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.ForgeDirection; import net.minecraftforge.common.ForgeDirection;
import buildcraft.api.transport.IPipeTile.PipeType;
import buildcraft.core.proxy.CoreProxy;
public class TileEngineWood extends TileEngine { public class TileEngineWood extends TileEngine {
@ -76,7 +76,7 @@ public class TileEngineWood extends TileEngine {
super.engineUpdate(); super.engineUpdate();
if (isRedstonePowered) if (isRedstonePowered)
if (worldObj.getWorldTime() % 20 == 0) if (worldObj.getTotalWorldTime() % 20 == 0)
addEnergy(1); addEnergy(1);
} }