Fixed bug where Interface Terminal shows TileInterface For all the machines.
This commit is contained in:
parent
0953c48ad5
commit
d3c7c83c30
|
@ -972,9 +972,8 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
|
||||||
TileEntity tile = iHost.getTileEntity();
|
TileEntity tile = iHost.getTileEntity();
|
||||||
World w = tile.getWorldObj();
|
World w = tile.getWorldObj();
|
||||||
|
|
||||||
String name = ((ICustomNameObject) iHost).getCustomName();
|
if ( ((ICustomNameObject) iHost).hasCustomName() )
|
||||||
if ( name != null )
|
return ((ICustomNameObject) iHost).getCustomName();
|
||||||
return name;
|
|
||||||
|
|
||||||
EnumSet<ForgeDirection> possibleDirections = iHost.getTargets();
|
EnumSet<ForgeDirection> possibleDirections = iHost.getTargets();
|
||||||
for (ForgeDirection s : possibleDirections)
|
for (ForgeDirection s : possibleDirections)
|
||||||
|
|
Loading…
Reference in a new issue