Only show active interfaces.
This commit is contained in:
parent
d184dcd4ca
commit
f5ee7e9b4f
1 changed files with 28 additions and 22 deletions
|
@ -197,36 +197,42 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
|
||||||
{
|
{
|
||||||
for (IGridNode gn : g.getMachines( TileInterface.class ))
|
for (IGridNode gn : g.getMachines( TileInterface.class ))
|
||||||
{
|
{
|
||||||
IInterfaceHost ih = (IInterfaceHost) gn.getMachine();
|
if ( gn.isActive() )
|
||||||
InvTracker t = diList.get( ih );
|
|
||||||
|
|
||||||
if ( t == null )
|
|
||||||
missing = true;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
DualityInterface dual = ih.getInterfaceDuality();
|
IInterfaceHost ih = (IInterfaceHost) gn.getMachine();
|
||||||
if ( !t.unlocalizedName.equals( dual.getTermName() ) )
|
InvTracker t = diList.get( ih );
|
||||||
missing = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
total++;
|
if ( t == null )
|
||||||
|
missing = true;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DualityInterface dual = ih.getInterfaceDuality();
|
||||||
|
if ( !t.unlocalizedName.equals( dual.getTermName() ) )
|
||||||
|
missing = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
total++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (IGridNode gn : g.getMachines( PartInterface.class ))
|
for (IGridNode gn : g.getMachines( PartInterface.class ))
|
||||||
{
|
{
|
||||||
IInterfaceHost ih = (IInterfaceHost) gn.getMachine();
|
if ( gn.isActive() )
|
||||||
InvTracker t = diList.get( ih );
|
|
||||||
|
|
||||||
if ( t == null )
|
|
||||||
missing = true;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
DualityInterface dual = ih.getInterfaceDuality();
|
IInterfaceHost ih = (IInterfaceHost) gn.getMachine();
|
||||||
if ( !t.unlocalizedName.equals( dual.getTermName() ) )
|
InvTracker t = diList.get( ih );
|
||||||
missing = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
total++;
|
if ( t == null )
|
||||||
|
missing = true;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DualityInterface dual = ih.getInterfaceDuality();
|
||||||
|
if ( !t.unlocalizedName.equals( dual.getTermName() ) )
|
||||||
|
missing = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
total++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue