internal void CheckGridPowerState(MyCubeGrid grid, GridMap map) { if ((!map.Powered && Tick - map.PowerCheckTick > 600 || map.Powered && Tick - map.PowerCheckTick > 1800)) { DirtyPowerGrids.TryAdd(grid, map); } }
internal void UpdateGridPowerState() { foreach (var pair in DirtyPowerGrids) { GridHasPower(pair.Key, pair.Value); } DirtyPowerGrids.Clear(); }