prevent crash if the interface terminal is broken while looking at it.
This commit is contained in:
parent
9510a84c56
commit
555bb66a70
1 changed files with 2 additions and 2 deletions
|
@ -212,7 +212,7 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
|
|||
if ( host != null )
|
||||
{
|
||||
IGridNode agn = host.getActionableNode();
|
||||
if ( agn.isActive() )
|
||||
if ( agn != null && agn.isActive() )
|
||||
{
|
||||
for (IGridNode gn : g.getMachines( TileInterface.class ))
|
||||
{
|
||||
|
@ -312,7 +312,7 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
|
|||
if ( host != null )
|
||||
{
|
||||
IGridNode agn = host.getActionableNode();
|
||||
if ( agn.isActive() )
|
||||
if ( agn != null && agn.isActive() )
|
||||
{
|
||||
for (IGridNode gn : g.getMachines( TileInterface.class ))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue