Cleanup warnings in PolymorphSystem.Map (#36869)

Fix warnings in PolymorphSystem.Map
This commit is contained in:
Tayrtahn 2025-04-23 18:25:13 -04:00 committed by GitHub
parent 411b563b1f
commit 02814e1e8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -31,8 +31,7 @@ public sealed partial class PolymorphSystem
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);
}
}

View file

@ -29,7 +29,7 @@ namespace Content.Server.Polymorph.Systems;
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!;