fix: ExtensionCableSystem to be consistent (#22745)
* fix: Use manhattan distance for extension cable system * fix: Changed my mind
This commit is contained in:
@@ -145,7 +145,7 @@ namespace Content.Server.Power.EntitySystems
|
|||||||
if (!receiver.Connectable || receiver.Provider != null)
|
if (!receiver.Connectable || receiver.Provider != null)
|
||||||
continue;
|
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);
|
yield return (entity, receiver);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user