Fix engine not working if doDaylightCycle is set to false. Fixes #1148
This commit is contained in:
parent
b08be18fd5
commit
8d1c6dc936
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue