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 GitHub
parent b8583ed573
commit 9e03d7cc3e

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);
}
}