]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup: Use ``MapSystem.DeleteMap`` instead of ``IMapManager.DeleteMap`` in ``HumanI...
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Mon, 24 Feb 2025 20:10:09 +0000 (23:10 +0300)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 20:10:09 +0000 (21:10 +0100)
* Cleanup

* Fix

Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs

index 4bba605f0ae43a58687cd9591d7acd15ae35c3d7..929a23115999efd7cac0cf5662e8000b5b2e2fcc 100644 (file)
@@ -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<IMapManager>();
+            var mapSystem = server.System<SharedMapSystem>();
             var entityMan = server.ResolveDependency<IEntityManager>();
 
             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();