From e2c1f1307ba3658b830ec74a9df3a22f23e13bfc Mon Sep 17 00:00:00 2001 From: Gig Date: Sun, 3 May 2015 17:33:27 +0100 Subject: [PATCH] Fixed something I broke --- .../blocks/BlockThermalGenerator.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/java/techreborn/blocks/BlockThermalGenerator.java b/src/main/java/techreborn/blocks/BlockThermalGenerator.java index 9d335cc5f..98dc7fac3 100644 --- a/src/main/java/techreborn/blocks/BlockThermalGenerator.java +++ b/src/main/java/techreborn/blocks/BlockThermalGenerator.java @@ -17,6 +17,7 @@ import net.minecraft.util.MathHelper; import net.minecraft.world.World; import techreborn.Core; import techreborn.client.GuiHandler; +import techreborn.tiles.TileAlloySmelter; import techreborn.tiles.TileThermalGenerator; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -37,6 +38,22 @@ public class BlockThermalGenerator extends BlockMachineBase { super(Material.rock); setHardness(2f); } + + @Override + public TileEntity createNewTileEntity(World world, int p_149915_2_) + { + return new TileThermalGenerator(); + } + + @Override + public boolean onBlockActivated(World world, int x, int y, int z, + EntityPlayer player, int side, float hitX, float hitY, float hitZ) + { + if (!player.isSneaking()) + player.openGui(Core.INSTANCE, GuiHandler.thermalGeneratorID, world, x, y, + z); + return true; + } @Override @SideOnly(Side.CLIENT)