fix inspect mind verb (#36558)

This commit is contained in:
slarticodefast
2025-04-14 16:45:57 +02:00
committed by GitHub
parent 69aa245428
commit f1d938ceb6
2 changed files with 12 additions and 18 deletions

View File

@@ -37,21 +37,6 @@ namespace Content.Client.Administration.Systems
ClientExclusive = true // opening VV window is client-side. Don't ask server to run this verb.
};
args.Verbs.Add(verb);
// Inspect mind
if (TryComp<MindContainerComponent>(args.Target, out var mindContainer)
&& mindContainer.HasMind)
{
Verb mindVerb = new()
{
Text = Loc.GetString("inspect-mind-verb-get-data-text"),
Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/VerbIcons/sentient.svg.192dpi.png")),
Category = VerbCategory.Debug,
Act = () => _clientConsoleHost.ExecuteCommand($"vv {GetNetEntity(mindContainer.Mind)}"),
ClientExclusive = true
};
args.Verbs.Add(mindVerb);
}
}
if (!_admin.IsAdmin(args.User))