From 6aa0812fa25fde4d20d4287132308a406aa0ab0b Mon Sep 17 00:00:00 2001 From: Winkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 13 Oct 2025 14:29:30 +0300 Subject: [PATCH] Fix barber scissors cancel errors (#40329) Fix --- Content.Server/MagicMirror/MagicMirrorSystem.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Content.Server/MagicMirror/MagicMirrorSystem.cs b/Content.Server/MagicMirror/MagicMirrorSystem.cs index 0fd00fca24..dbc258c02c 100644 --- a/Content.Server/MagicMirror/MagicMirrorSystem.cs +++ b/Content.Server/MagicMirror/MagicMirrorSystem.cs @@ -107,6 +107,8 @@ public sealed class MagicMirrorSystem : SharedMagicMirrorSystem private void OnSelectSlotDoAfter(EntityUid uid, MagicMirrorComponent component, MagicMirrorSelectDoAfterEvent args) { + component.DoAfter = null; + if (args.Handled || args.Target == null || args.Cancelled) return; @@ -185,6 +187,8 @@ public sealed class MagicMirrorSystem : SharedMagicMirrorSystem } private void OnChangeColorDoAfter(EntityUid uid, MagicMirrorComponent component, MagicMirrorChangeColorDoAfterEvent args) { + component.DoAfter = null; + if (args.Handled || args.Target == null || args.Cancelled) return; @@ -265,6 +269,8 @@ public sealed class MagicMirrorSystem : SharedMagicMirrorSystem private void OnRemoveSlotDoAfter(EntityUid uid, MagicMirrorComponent component, MagicMirrorRemoveSlotDoAfterEvent args) { + component.DoAfter = null; + if (args.Handled || args.Target == null || args.Cancelled) return; @@ -342,6 +348,8 @@ public sealed class MagicMirrorSystem : SharedMagicMirrorSystem } private void OnAddSlotDoAfter(EntityUid uid, MagicMirrorComponent component, MagicMirrorAddSlotDoAfterEvent args) { + component.DoAfter = null; + if (args.Handled || args.Target == null || args.Cancelled || !TryComp(component.Target, out HumanoidAppearanceComponent? humanoid)) return; -- 2.51.2