From c3d0b93ddf4105c0a584a53b6665465868ac6bfb Mon Sep 17 00:00:00 2001 From: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> Date: Tue, 25 Mar 2025 19:40:54 +0100 Subject: [PATCH] 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> --- Content.Server/Administration/Systems/AdminVerbSystem.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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, -- 2.51.2