prevent crash if the interface terminal is broken while looking at it.
This commit is contained in:
@@ -212,7 +212,7 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
|
|||||||
if ( host != null )
|
if ( host != null )
|
||||||
{
|
{
|
||||||
IGridNode agn = host.getActionableNode();
|
IGridNode agn = host.getActionableNode();
|
||||||
if ( agn.isActive() )
|
if ( agn != null && agn.isActive() )
|
||||||
{
|
{
|
||||||
for (IGridNode gn : g.getMachines( TileInterface.class ))
|
for (IGridNode gn : g.getMachines( TileInterface.class ))
|
||||||
{
|
{
|
||||||
@@ -312,7 +312,7 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
|
|||||||
if ( host != null )
|
if ( host != null )
|
||||||
{
|
{
|
||||||
IGridNode agn = host.getActionableNode();
|
IGridNode agn = host.getActionableNode();
|
||||||
if ( agn.isActive() )
|
if ( agn != null && agn.isActive() )
|
||||||
{
|
{
|
||||||
for (IGridNode gn : g.getMachines( TileInterface.class ))
|
for (IGridNode gn : g.getMachines( TileInterface.class ))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user