Skip to content

Commit

Permalink
Merge pull request #19 from TorchAPI/staging
Browse files Browse the repository at this point in the history
Prepare v1.6.0
  • Loading branch information
Equinox- authored Sep 8, 2017
2 parents 33c1d10 + e588184 commit 80f70be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Essentials/Commands/CleanupModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ private IEnumerable<MyCubeGrid> ScanConditions(IReadOnlyList<string> args)
}
}

foreach (var grid in MyEntities.GetEntities().OfType<MyCubeGrid>())
foreach (var group in MyCubeGridGroups.Static.Logical.Groups)
{
if (conditions.TrueForAll(func => func(grid)))
yield return grid;
if (group.Nodes.All(grid => conditions.TrueForAll(func => func(grid.NodeData))))
foreach (var grid in group.Nodes)
yield return grid.NodeData;
}
}

Expand Down

0 comments on commit 80f70be

Please sign in to comment.