fix: ExtensionCableSystem to be consistent (#22745)

* fix: Use manhattan distance for extension cable system

* fix: Changed my mind
This commit is contained in:
Kot 2023-12-21 02:43:46 +03:00 committed by Debug
parent 0c2d011e3f
commit 69fbfb7278
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ namespace Content.Server.Power.EntitySystems
if (!receiver.Connectable || receiver.Provider != null)
continue;
if ((Transform(entity).LocalPosition - xform.LocalPosition).Length() < Math.Min(range, receiver.ReceptionRange))
if ((Transform(entity).LocalPosition - xform.LocalPosition).Length() <= Math.Min(range, receiver.ReceptionRange))
yield return (entity, receiver);
}
}