From: J Date: Mon, 14 Apr 2025 20:12:04 +0000 (+0000) Subject: Ghost spring cleaning (#36194) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=22639a3cdf4d4194167053c6008ce3e692c89b06;p=space-station-14.git Ghost spring cleaning (#36194) * Ghost warnings cleanup * Undo incorrect changes * Removing whitespace --- diff --git a/Content.Server/Ghost/GhostSystem.cs b/Content.Server/Ghost/GhostSystem.cs index 435584e908..df4d998128 100644 --- a/Content.Server/Ghost/GhostSystem.cs +++ b/Content.Server/Ghost/GhostSystem.cs @@ -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))