diff --git a/Content.Client/MagicMirror/MagicMirrorBoundUserInterface.cs b/Content.Client/MagicMirror/MagicMirrorBoundUserInterface.cs index ec247da1acb..4344926e854 100644 --- a/Content.Client/MagicMirror/MagicMirrorBoundUserInterface.cs +++ b/Content.Client/MagicMirror/MagicMirrorBoundUserInterface.cs @@ -20,6 +20,9 @@ public sealed class MagicMirrorBoundUserInterface : BoundUserInterface base.Open(); _window = this.CreateWindow(); + + _window.Title = EntMan.GetComponent(Owner).EntityName; + _window.MarkingsPicker.SetModel(_markingsModel); _markingsModel.MarkingsChanged += (_, _) => diff --git a/Content.Client/MagicMirror/MagicMirrorWindow.xaml b/Content.Client/MagicMirror/MagicMirrorWindow.xaml index a09b6745085..3de0aecef37 100644 --- a/Content.Client/MagicMirror/MagicMirrorWindow.xaml +++ b/Content.Client/MagicMirror/MagicMirrorWindow.xaml @@ -1,6 +1,5 @@ diff --git a/Content.Shared/MagicMirror/MagicMirrorSystem.cs b/Content.Shared/MagicMirror/MagicMirrorSystem.cs index 65a4d11079e..ca7609c97d9 100644 --- a/Content.Shared/MagicMirror/MagicMirrorSystem.cs +++ b/Content.Shared/MagicMirror/MagicMirrorSystem.cs @@ -142,6 +142,9 @@ public sealed class MagicMirrorSystem : EntitySystem if (!args.CanReach || args.Target == null) return; + if (!HasComp(args.Target.Value)) + return; + UpdateInterface(mirror, args.Target.Value); _userInterface.TryOpenUi(mirror.Owner, MagicMirrorUiKey.Key, args.User); } diff --git a/Resources/Locale/en-US/character-appearance/components/magic-mirror-component.ftl b/Resources/Locale/en-US/character-appearance/components/magic-mirror-component.ftl index 1b22fbf8282..ec2289cb900 100644 --- a/Resources/Locale/en-US/character-appearance/components/magic-mirror-component.ftl +++ b/Resources/Locale/en-US/character-appearance/components/magic-mirror-component.ftl @@ -1,6 +1,5 @@ magic-mirror-component-activate-user-has-no-hair = You can't have any hair! -magic-mirror-window-title = Magic Mirror magic-mirror-add-slot-self = You're giving yourself some hair. magic-mirror-remove-slot-self = You're removing some of your hair. magic-mirror-change-slot-self = You're changing your hairstyle.