Fix chute either working twice as fast or not at all depending on when you set doDaylightCycle to false
This commit is contained in:
parent
8d1c6dc936
commit
4f21d4f8d8
1 changed files with 6 additions and 6 deletions
|
@ -1,16 +1,16 @@
|
|||
package buildcraft.factory;
|
||||
|
||||
import buildcraft.core.TileBuildCraft;
|
||||
import buildcraft.core.inventory.ITransactor;
|
||||
import buildcraft.core.inventory.SimpleInventory;
|
||||
import buildcraft.core.inventory.Transactor;
|
||||
import buildcraft.core.proxy.CoreProxy;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import buildcraft.core.TileBuildCraft;
|
||||
import buildcraft.core.inventory.ITransactor;
|
||||
import buildcraft.core.inventory.SimpleInventory;
|
||||
import buildcraft.core.inventory.Transactor;
|
||||
import buildcraft.core.proxy.CoreProxy;
|
||||
|
||||
public class TileHopper extends TileBuildCraft implements IInventory {
|
||||
|
||||
|
@ -34,7 +34,7 @@ public class TileHopper extends TileBuildCraft implements IInventory {
|
|||
@Override
|
||||
public void updateEntity() {
|
||||
super.updateEntity();
|
||||
if (CoreProxy.proxy.isRenderWorld(worldObj) || worldObj.getWorldTime() % 2 != 0)
|
||||
if (CoreProxy.proxy.isRenderWorld(worldObj) || worldObj.getTotalWorldTime() % 2 != 0)
|
||||
return;
|
||||
|
||||
TileEntity tile = this.worldObj.getBlockTileEntity(xCoord, yCoord - 1, zCoord);
|
||||
|
|
Loading…
Reference in a new issue