From 69d7ec9438f0396fd1254a07cbfa837a3b67be63 Mon Sep 17 00:00:00 2001 From: Remuchi Date: Wed, 17 Apr 2024 13:34:19 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B7=D0=B5=D1=80=D0=BA=D0=B0=D0=BB?= =?UTF-8?q?=D0=BE=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20=D1=82=D0=BE=D1=87=D0=BD?= =?UTF-8?q?=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/MagicMirror/MagicMirrorSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/MagicMirror/MagicMirrorSystem.cs b/Content.Server/MagicMirror/MagicMirrorSystem.cs index 78b7ef1187..a3cb98c9ed 100644 --- a/Content.Server/MagicMirror/MagicMirrorSystem.cs +++ b/Content.Server/MagicMirror/MagicMirrorSystem.cs @@ -7,6 +7,7 @@ using Content.Shared.Humanoid; using Content.Shared.Humanoid.Markings; using Content.Shared.Interaction; using Content.Shared.MagicMirror; +using Content.Shared.Physics; using Robust.Server.GameObjects; using Robust.Shared.Audio.Systems; using Robust.Shared.Player; @@ -62,7 +63,7 @@ public sealed class MagicMirrorSystem : EntitySystem { component.Target ??= args.Player.AttachedEntity; - if (!component.Target.HasValue || !_interaction.InRangeUnobstructed(uid, component.Target!.Value)) + if (!component.Target.HasValue || !_interaction.InRangeUnobstructed(uid, component.Target!.Value, range: 2f, CollisionGroup.None)) { args.Result = BoundUserInterfaceRangeResult.Fail; }