Fix warnings in PolymorphSystem.Map
if (PausedMap != null && Exists(PausedMap))
return;
- var newmap = _mapManager.CreateMap();
- _mapManager.SetMapPaused(newmap, true);
- PausedMap = _mapManager.GetMapEntityId(newmap);
+ PausedMap = _map.CreateMap();
+ _map.SetPaused(PausedMap.Value, true);
}
}
public sealed partial class PolymorphSystem : EntitySystem
{
[Dependency] private readonly IComponentFactory _compFact = default!;
- [Dependency] private readonly IMapManager _mapManager = default!;
+ [Dependency] private readonly SharedMapSystem _map = default!;
[Dependency] private readonly IPrototypeManager _proto = default!;
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly ActionsSystem _actions = default!;