Add support for custom controls in the character menu (#19567)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
using Content.Server.Roles;
|
||||
using Content.Shared.CharacterInfo;
|
||||
using Content.Shared.Objectives;
|
||||
using Robust.Shared.Player;
|
||||
|
||||
namespace Content.Server.CharacterInfo;
|
||||
|
||||
@@ -25,8 +24,8 @@ public sealed class CharacterInfoSystem : EntitySystem
|
||||
|
||||
var conditions = new Dictionary<string, List<ConditionInfo>>();
|
||||
var jobTitle = "No Profession";
|
||||
var briefing = "!!ERROR: No Briefing!!"; //should never show on the UI unless there's a bug
|
||||
if (EntityManager.TryGetComponent(entity, out MindContainerComponent? mindContainerComponent) && mindContainerComponent.Mind != null)
|
||||
var briefing = "!!ERROR: No Briefing!!"; //should never show on the UI unless there's an issue
|
||||
if (TryComp<MindContainerComponent>(entity, out var mindContainerComponent) && mindContainerComponent.Mind != null)
|
||||
{
|
||||
var mind = mindContainerComponent.Mind;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user