diff --git a/Content.Client/Sandbox/SandboxManager.cs b/Content.Client/Sandbox/SandboxManager.cs index 6e613f13ca..e8e654febb 100644 --- a/Content.Client/Sandbox/SandboxManager.cs +++ b/Content.Client/Sandbox/SandboxManager.cs @@ -77,7 +77,6 @@ namespace Content.Client.Sandbox [Dependency] private readonly IClientConsole _console = default!; [Dependency] private readonly IGameHud _gameHud = default!; [Dependency] private readonly IClientNetManager _netManager = default!; - [Dependency] private readonly ILocalizationManager _localization = default!; [Dependency] private readonly IPlacementManager _placementManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IResourceCache _resourceCache = default!; @@ -241,7 +240,7 @@ namespace Content.Client.Sandbox private void ToggleEntitySpawnWindow() { if (_spawnWindow == null) - _spawnWindow = new EntitySpawnWindow(_placementManager, _prototypeManager, _resourceCache, _localization); + _spawnWindow = new EntitySpawnWindow(_placementManager, _prototypeManager, _resourceCache); if (_spawnWindow.IsOpen) { @@ -249,7 +248,7 @@ namespace Content.Client.Sandbox } else { - _spawnWindow = new EntitySpawnWindow(_placementManager, _prototypeManager, _resourceCache, _localization); + _spawnWindow = new EntitySpawnWindow(_placementManager, _prototypeManager, _resourceCache); _spawnWindow.OpenToLeft(); } } diff --git a/Content.Client/UserInterface/AdminMenu/AdminMenuWindow.cs b/Content.Client/UserInterface/AdminMenu/AdminMenuWindow.cs index b737d39d78..0025f0df6b 100644 --- a/Content.Client/UserInterface/AdminMenu/AdminMenuWindow.cs +++ b/Content.Client/UserInterface/AdminMenu/AdminMenuWindow.cs @@ -438,8 +438,7 @@ namespace Content.Client.UserInterface.AdminMenu var manager = IoCManager.Resolve(); var window = new EntitySpawnWindow(IoCManager.Resolve(), IoCManager.Resolve(), - IoCManager.Resolve(), - IoCManager.Resolve()); + IoCManager.Resolve()); manager.OpenCommand(window); } } diff --git a/Content.Shared/EntryPoint.cs b/Content.Shared/EntryPoint.cs index b69c107dde..0f163e43c4 100644 --- a/Content.Shared/EntryPoint.cs +++ b/Content.Shared/EntryPoint.cs @@ -18,7 +18,6 @@ [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!; - [Dependency] private readonly ILocalizationManager _localizationManager = default!; public override void PreInit() { @@ -28,7 +27,7 @@ textMacroFactory.DoAutoRegistrations(); // Default to en-US. - _localizationManager.LoadCulture(new CultureInfo(Culture)); + Loc.LoadCulture(new CultureInfo(Culture)); } public override void Init()