Revert the other arch changes (#21871)

This commit is contained in:
metalgearsloth
2023-11-24 11:19:46 +11:00
committed by GitHub
parent 15052bf7c2
commit d4bed09cdc
32 changed files with 108 additions and 309 deletions

View File

@@ -33,15 +33,15 @@ namespace Content.Server.Administration.Commands
return;
}
var targetNet = new NetEntity(targetId);
var target = new EntityUid(targetId);
if (!_entities.TryGetEntity(targetNet, out var target))
if (!target.IsValid() || !_entities.EntityExists(target))
{
shell.WriteLine(Loc.GetString("shell-invalid-entity-id"));
return;
}
_entities.System<MindSystem>().ControlMob(player.UserId, target.Value);
_entities.System<MindSystem>().ControlMob(player.UserId, target);
}
}
}