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>
This commit is contained in:
@@ -153,12 +153,10 @@ namespace Content.Server.Administration.Systems
|
|||||||
|
|
||||||
var profile = _ticker.GetPlayerProfile(targetActor.PlayerSession);
|
var profile = _ticker.GetPlayerProfile(targetActor.PlayerSession);
|
||||||
var mobUid = _spawning.SpawnPlayerMob(coords.Value, null, profile, stationUid);
|
var mobUid = _spawning.SpawnPlayerMob(coords.Value, null, profile, stationUid);
|
||||||
var targetMind = _mindSystem.GetMind(args.Target);
|
|
||||||
|
|
||||||
if (targetMind != null)
|
if (_mindSystem.TryGetMind(args.Target, out var mindId, out var mindComp))
|
||||||
{
|
_mindSystem.TransferTo(mindId, mobUid, true, mind: mindComp);
|
||||||
_mindSystem.TransferTo(targetMind.Value, mobUid, true);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
ConfirmationPopup = true,
|
ConfirmationPopup = true,
|
||||||
Impact = LogImpact.High,
|
Impact = LogImpact.High,
|
||||||
|
|||||||
Reference in New Issue
Block a user