Skip to content

Commit 8a18411

Browse files
authored
Update GridModule.cs (#153)
add check to only convert largest grid in group to avoid subgrid conversion.
1 parent 2ebeb92 commit 8a18411

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Essentials/Commands/GridModule.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public void Eject(string gridName = null)
140140
public void StaticLarge()
141141
{
142142
foreach (var grid in MyEntities.GetEntities().OfType<MyCubeGrid>().Where(g => g.GridSizeEnum == MyCubeSize.Large).Where(x => x.Projector == null))
143+
if (grid != grid.GetBiggestGridInGroup()) continue;
143144
grid.OnConvertedToStationRequest(); //Keen why do you do this to me?
144145
}
145146

0 commit comments

Comments
 (0)