]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Ghost spring cleaning (#36194)
authorJ <billsmith116@gmail.com>
Mon, 14 Apr 2025 20:12:04 +0000 (20:12 +0000)
committerGitHub <noreply@github.com>
Mon, 14 Apr 2025 20:12:04 +0000 (22:12 +0200)
* Ghost warnings cleanup

* Undo incorrect changes

* Removing whitespace

Content.Server/Ghost/GhostSystem.cs

index 435584e908350355ead3ef4ac7f95026ee7f4eb8..df4d998128dba521bf6a9f1ccbed64433b3d0077 100644 (file)
@@ -442,7 +442,7 @@ namespace Content.Server.Ghost
             if (spawnPosition?.IsValid(EntityManager) != true)
                 return false;
 
-            var mapUid = spawnPosition?.GetMapUid(EntityManager);
+            var mapUid = _transformSystem.GetMap(spawnPosition.Value);
             var gridUid = spawnPosition?.EntityId;
             // Test if the map is being deleted
             if (mapUid == null || TerminatingOrDeleted(mapUid.Value))