Only show active interfaces.

This commit is contained in:
AlgorithmX2
2014-07-13 21:59:19 -05:00
parent d184dcd4ca
commit f5ee7e9b4f
@@ -196,6 +196,8 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
if ( agn.isActive() ) if ( agn.isActive() )
{ {
for (IGridNode gn : g.getMachines( TileInterface.class )) for (IGridNode gn : g.getMachines( TileInterface.class ))
{
if ( gn.isActive() )
{ {
IInterfaceHost ih = (IInterfaceHost) gn.getMachine(); IInterfaceHost ih = (IInterfaceHost) gn.getMachine();
InvTracker t = diList.get( ih ); InvTracker t = diList.get( ih );
@@ -211,8 +213,11 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
total++; total++;
} }
}
for (IGridNode gn : g.getMachines( PartInterface.class )) for (IGridNode gn : g.getMachines( PartInterface.class ))
{
if ( gn.isActive() )
{ {
IInterfaceHost ih = (IInterfaceHost) gn.getMachine(); IInterfaceHost ih = (IInterfaceHost) gn.getMachine();
InvTracker t = diList.get( ih ); InvTracker t = diList.get( ih );
@@ -230,6 +235,7 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
} }
} }
} }
}
if ( total != diList.size() || missing ) if ( total != diList.size() || missing )
regenList( data ); regenList( data );