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