From fc2265d0ebf525b381444393bb2f3a8325d7d903 Mon Sep 17 00:00:00 2001 From: Gig Date: Wed, 29 Apr 2015 13:08:07 +0100 Subject: [PATCH] A few little things added to chunk loader --- .../techreborn/tiles/TileChunkLoader.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/main/java/techreborn/tiles/TileChunkLoader.java b/src/main/java/techreborn/tiles/TileChunkLoader.java index 47abf3953..dccc6a6f8 100644 --- a/src/main/java/techreborn/tiles/TileChunkLoader.java +++ b/src/main/java/techreborn/tiles/TileChunkLoader.java @@ -4,15 +4,34 @@ import ic2.api.energy.prefab.BasicSink; import ic2.api.tile.IWrenchable; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; +import techreborn.config.ConfigTechReborn; import techreborn.init.ModBlocks; import techreborn.util.Inventory; public class TileChunkLoader extends TileMachineBase implements IWrenchable{ - public int tickTime; public BasicSink energy; public Inventory inventory = new Inventory(1, "TileChunkLoader", 64); + public boolean isRunning; + public int tickTime; + + public int euTick = 32; + + public TileChunkLoader() + { + energy = new BasicSink(this, 1000, + 1); + } + + @Override + public void updateEntity() + { + super.updateEntity(); + energy.updateEntity(); + } + + @Override public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side)