Only show active interfaces.

This commit is contained in:
AlgorithmX2 2014-07-13 21:59:19 -05:00
parent d184dcd4ca
commit f5ee7e9b4f

View file

@ -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++;
}
} }
} }
} }