Merge remote-tracking branch 'upstream/stable' into ed-upstream-sync

# Conflicts:
#	Content.Shared/Weapons/Melee/MeleeWeaponComponent.cs
This commit is contained in:
Ed
2025-04-15 00:44:29 +03:00
463 changed files with 17534 additions and 10124 deletions

View File

@@ -63,8 +63,9 @@ public sealed class HealthAnalyzerSystem : EntitySystem
component.NextUpdate = _timing.CurTime + component.UpdateInterval;
//Get distance between health analyzer and the scanned entity
//null is infinite range
var patientCoordinates = Transform(patient).Coordinates;
if (!_transformSystem.InRange(patientCoordinates, transform.Coordinates, component.MaxScanRange))
if (component.MaxScanRange != null && !_transformSystem.InRange(patientCoordinates, transform.Coordinates, component.MaxScanRange.Value))
{
//Range too far, disable updates
StopAnalyzingEntity((uid, component), patient);