From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 20:10:09 +0000 (+0300) Subject: Cleanup: Use ``MapSystem.DeleteMap`` instead of ``IMapManager.DeleteMap`` in ``HumanI... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=059c64a75fc49861bd9d2ccb3fe2d451fd51cb0d;p=space-station-14.git Cleanup: Use ``MapSystem.DeleteMap`` instead of ``IMapManager.DeleteMap`` in ``HumanInventoryUniformSlotsTest`` (#35469) * Cleanup * Fix --- diff --git a/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs b/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs index 4bba605f0a..929a231159 100644 --- a/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs +++ b/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs @@ -1,6 +1,5 @@ using Content.Shared.Inventory; using Robust.Shared.GameObjects; -using Robust.Shared.Map; namespace Content.IntegrationTests.Tests { @@ -67,7 +66,7 @@ namespace Content.IntegrationTests.Tests EntityUid pocketItem = default; InventorySystem invSystem = default!; - var mapMan = server.ResolveDependency(); + var mapSystem = server.System(); var entityMan = server.ResolveDependency(); await server.WaitAssertion(() => @@ -129,7 +128,7 @@ namespace Content.IntegrationTests.Tests Assert.That(!invSystem.TryGetSlotEntity(human, "pocket1", out _)); }); - mapMan.DeleteMap(testMap.MapId); + mapSystem.DeleteMap(testMap.MapId); }); await pair.CleanReturnAsync();