Cleanup warnings in SharedCryostorageSystem (#36863)
Fix warnings in SharedCryostorageSystem
This commit is contained in:
@@ -21,6 +21,7 @@ public abstract class SharedCryostorageSystem : EntitySystem
|
||||
[Dependency] private readonly IConfigurationManager _configuration = default!;
|
||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||
[Dependency] private readonly ISharedPlayerManager _player = default!;
|
||||
[Dependency] private readonly SharedMapSystem _map = default!;
|
||||
[Dependency] private readonly MobStateSystem _mobState = default!;
|
||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||
[Dependency] protected readonly IGameTiming Timing = default!;
|
||||
@@ -168,9 +169,8 @@ public abstract class SharedCryostorageSystem : EntitySystem
|
||||
if (PausedMap != null && Exists(PausedMap))
|
||||
return;
|
||||
|
||||
var map = _mapManager.CreateMap();
|
||||
_mapManager.SetMapPaused(map, true);
|
||||
PausedMap = _mapManager.GetMapEntityId(map);
|
||||
PausedMap = _map.CreateMap();
|
||||
_map.SetPaused(PausedMap.Value, true);
|
||||
}
|
||||
|
||||
public bool IsInPausedMap(Entity<TransformComponent?> entity)
|
||||
|
||||
Reference in New Issue
Block a user