From: Plykiya <58439124+Plykiya@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:25:11 +0000 (-0700) Subject: Fixes magic mirror interactions (#29491) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=4a0c637ee8d0f7d5eb56b2b20fb878207ba42fae;p=space-station-14.git Fixes magic mirror interactions (#29491) * Fix for magic mirror interaction * Works for all cases * swap the order, works --------- Co-authored-by: plykiya --- 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; }