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)