From: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> Date: Tue, 25 Mar 2025 18:40:54 +0000 (+0100) Subject: Fix admin "Spawn here" verb (#36080) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c3d0b93ddf4105c0a584a53b6665465868ac6bfb;p=space-station-14.git Fix admin "Spawn here" verb (#36080) * init * review * review Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- diff --git a/Content.Server/Administration/Systems/AdminVerbSystem.cs b/Content.Server/Administration/Systems/AdminVerbSystem.cs index 39ae699683..17f205bd9b 100644 --- a/Content.Server/Administration/Systems/AdminVerbSystem.cs +++ b/Content.Server/Administration/Systems/AdminVerbSystem.cs @@ -153,12 +153,10 @@ namespace Content.Server.Administration.Systems var profile = _ticker.GetPlayerProfile(targetActor.PlayerSession); var mobUid = _spawning.SpawnPlayerMob(coords.Value, null, profile, stationUid); - var targetMind = _mindSystem.GetMind(args.Target); - if (targetMind != null) - { - _mindSystem.TransferTo(targetMind.Value, mobUid, true); - } + if (_mindSystem.TryGetMind(args.Target, out var mindId, out var mindComp)) + _mindSystem.TransferTo(mindId, mobUid, true, mind: mindComp); + }, ConfirmationPopup = true, Impact = LogImpact.High,