Use slightly faster ArrayDeqeue instead of LinkedList. Check boolean fields before more complex datatypes
This commit is contained in:
@@ -320,7 +320,7 @@ public class GridNode implements IGridNode, IPathItem
|
||||
{
|
||||
final IPathingGrid pg = g.getCache( IPathingGrid.class );
|
||||
final IEnergyGrid eg = g.getCache( IEnergyGrid.class );
|
||||
return this.meetsChannelRequirements() && eg.isNetworkPowered() && !pg.isNetworkBooting();
|
||||
return eg.isNetworkPowered() && !pg.isNetworkBooting() && this.meetsChannelRequirements();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user