]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixes magic mirror interactions (#29491)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Wed, 26 Jun 2024 14:25:11 +0000 (07:25 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2024 14:25:11 +0000 (00:25 +1000)
* Fix for magic mirror interaction

* Works for all cases

* swap the order, works

---------

Co-authored-by: plykiya <plykiya@protonmail.com>
Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs [deleted file]
Content.Shared/MagicMirror/SharedMagicMirrorSystem.cs

diff --git a/Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs b/Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs
deleted file mode 100644 (file)
index e69de29..0000000
index 789b484cfd3e6efb50cffcae2e8c7a81459374b0..9f5348a10f0b1bfe52594fb9ceba5d8818f04831 100644 (file)
@@ -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;
     }