From 90b70be679caa9923923297cd900f006573d5a05 Mon Sep 17 00:00:00 2001 From: CrazyPants Date: Tue, 14 Jan 2014 21:08:56 +0800 Subject: [PATCH] #392 Fix crash when two transceivers stacked on each other and setup to loop. Fixed localization issue. --- common/crazypants/enderio/machine/hypercube/GuiHyperCube.java | 2 +- common/crazypants/enderio/machine/hypercube/TileHyperCube.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/crazypants/enderio/machine/hypercube/GuiHyperCube.java b/common/crazypants/enderio/machine/hypercube/GuiHyperCube.java index 53c417e1..bc4051c8 100644 --- a/common/crazypants/enderio/machine/hypercube/GuiHyperCube.java +++ b/common/crazypants/enderio/machine/hypercube/GuiHyperCube.java @@ -204,7 +204,7 @@ public class GuiHyperCube extends GuiScreenBase { } else { itemB.setIcon(IconEIO.WRENCH_OVERLAY_ITEM_OFF); } - itemB.setToolTip(Lang.localize("gui.trans.fluidMode"), mode.getLocalisedName()); + itemB.setToolTip(Lang.localize("gui.trans.itemMode"), mode.getLocalisedName()); } private boolean isPublic(Channel chan) { diff --git a/common/crazypants/enderio/machine/hypercube/TileHyperCube.java b/common/crazypants/enderio/machine/hypercube/TileHyperCube.java index d6f1a4df..547030d8 100644 --- a/common/crazypants/enderio/machine/hypercube/TileHyperCube.java +++ b/common/crazypants/enderio/machine/hypercube/TileHyperCube.java @@ -640,7 +640,7 @@ public class TileHyperCube extends TileEntity implements IInternalPowerReceptor, for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) { BlockCoord checkLoc = myLoc.getLocation(dir); TileEntity te = worldObj.getBlockTileEntity(checkLoc.x, checkLoc.y, checkLoc.z); - if(te instanceof IFluidHandler) { + if(te instanceof IFluidHandler && !(te instanceof TileHyperCube)) { IFluidHandler fh = (IFluidHandler) te; fluidHandlers.add(new NetworkFluidHandler(this, fh, dir)); }