From d3c7c83c302888d831a1e1d3a0b3ecece5a076d1 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sun, 13 Jul 2014 01:45:41 -0500 Subject: [PATCH] Fixed bug where Interface Terminal shows TileInterface For all the machines. --- helpers/DualityInterface.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/helpers/DualityInterface.java b/helpers/DualityInterface.java index 2e0a8d60..fd2fd714 100644 --- a/helpers/DualityInterface.java +++ b/helpers/DualityInterface.java @@ -972,9 +972,8 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt TileEntity tile = iHost.getTileEntity(); World w = tile.getWorldObj(); - String name = ((ICustomNameObject) iHost).getCustomName(); - if ( name != null ) - return name; + if ( ((ICustomNameObject) iHost).hasCustomName() ) + return ((ICustomNameObject) iHost).getCustomName(); EnumSet possibleDirections = iHost.getTargets(); for (ForgeDirection s : possibleDirections)