@@ -28,7 +28,7 @@ public class ConcealGroup
2828 public List < MyCubeGrid > Grids { get ; }
2929 public List < MyMedicalRoom > MedicalRooms { get ; } = new List < MyMedicalRoom > ( ) ;
3030 public List < MyCryoChamber > CryoChambers { get ; } = new List < MyCryoChamber > ( ) ;
31- private Dictionary < long , bool > _unstatic = new Dictionary < long , bool > ( ) ;
31+ // private Dictionary<long, bool> _unstatic = new Dictionary<long, bool>();
3232 public event Action < ConcealGroup > Closing ;
3333 internal volatile int ProxyId = - 1 ;
3434
@@ -132,11 +132,12 @@ public bool IsCryoOccupied(ulong steamId)
132132 /// </summary>
133133 public void Conceal ( )
134134 {
135- _unstatic . Clear ( ) ;
135+ //TODO: find good way to disable grid movement/physics
136+ //_unstatic.Clear();
136137 foreach ( var grid in Grids )
137138 {
138- _unstatic [ grid . EntityId ] = ! grid . IsStatic ;
139- grid . ConvertToStatic ( ) ;
139+ // _unstatic[grid.EntityId] = !grid.IsStatic;
140+ // grid.ConvertToStatic();
140141
141142 if ( grid . Parent == null )
142143 UnregisterRecursive ( grid ) ;
@@ -169,8 +170,8 @@ public void Reveal()
169170
170171 foreach ( var grid in Grids )
171172 {
172- if ( _unstatic [ grid . EntityId ] )
173- grid . OnConvertToDynamic ( ) ;
173+ // if (_unstatic[grid.EntityId])
174+ // grid.OnConvertToDynamic();
174175
175176 if ( grid . Parent == null )
176177 RegisterRecursive ( grid ) ;
0 commit comments