blast furnace gui should still open even if there is no multiblock

This commit is contained in:
Gig 2015-06-20 21:54:08 +01:00
parent 5d9c273743
commit 49a359f178

View file

@ -51,22 +51,8 @@ public class BlockBlastFurnace extends BlockMachineBase {
EntityPlayer player, int side, float hitX, float hitY, float hitZ)
{
if (!player.isSneaking())
for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS)
{
if (world.getTileEntity(x + direction.offsetX, y
+ direction.offsetY, z + direction.offsetZ) instanceof TileMachineCasing)
{
TileMachineCasing casing = (TileMachineCasing) world
.getTileEntity(x + direction.offsetX, y
+ direction.offsetY, z + direction.offsetZ);
if (casing.getMultiblockController() != null
&& casing.getMultiblockController().isAssembled() && !casing.getMultiblockController().isStar)
{
player.openGui(Core.INSTANCE,
GuiHandler.blastFurnaceID, world, x, y, z);
}
}
}
player.openGui(Core.INSTANCE, GuiHandler.blastFurnaceID, world, x, y,
z);
return true;
}