From 4a0c637ee8d0f7d5eb56b2b20fb878207ba42fae Mon Sep 17 00:00:00 2001 From: Plykiya <58439124+Plykiya@users.noreply.github.com> Date: Wed, 26 Jun 2024 07:25:11 -0700 Subject: [PATCH] Fixes magic mirror interactions (#29491) * Fix for magic mirror interaction * Works for all cases * swap the order, works --------- Co-authored-by: plykiya --- .../CharacterAppearance/MagicMirrorBoundUserInterface.cs | 0 Content.Shared/MagicMirror/SharedMagicMirrorSystem.cs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs diff --git a/Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs b/Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/Content.Shared/MagicMirror/SharedMagicMirrorSystem.cs b/Content.Shared/MagicMirror/SharedMagicMirrorSystem.cs index 789b484cfd..9f5348a10f 100644 --- a/Content.Shared/MagicMirror/SharedMagicMirrorSystem.cs +++ b/Content.Shared/MagicMirror/SharedMagicMirrorSystem.cs @@ -42,7 +42,7 @@ public abstract class SharedMagicMirrorSystem : EntitySystem return; } - if (!_interaction.InRangeUnobstructed(uid, component.Target.Value)) + if (!_interaction.InRangeUnobstructed(component.Target.Value, uid)) args.Result = BoundUserInterfaceRangeResult.Fail; } -- 2.51.2