Fixed bug where Interface Terminal shows TileInterface For all the machines.

This commit is contained in:
AlgorithmX2 2014-07-13 01:45:41 -05:00
parent 0953c48ad5
commit d3c7c83c30

View file

@ -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<ForgeDirection> possibleDirections = iHost.getTargets();
for (ForgeDirection s : possibleDirections)