From: qwerltaz <69696513+qwerltaz@users.noreply.github.com> Date: Fri, 10 Oct 2025 19:41:21 +0000 (+0200) Subject: fix singulo generator triggering failsafe when field is obstructed (#39593) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=766c2b875948851c1944fd22275b267d0b1131d0;p=space-station-14.git fix singulo generator triggering failsafe when field is obstructed (#39593) fix singulo gen failsafe when field obstructed --- diff --git a/Content.Server/Singularity/EntitySystems/SingularityGeneratorSystem.cs b/Content.Server/Singularity/EntitySystems/SingularityGeneratorSystem.cs index 8e33410561..884d625045 100644 --- a/Content.Server/Singularity/EntitySystems/SingularityGeneratorSystem.cs +++ b/Content.Server/Singularity/EntitySystems/SingularityGeneratorSystem.cs @@ -176,9 +176,10 @@ public sealed class SingularityGeneratorSystem : SharedSingularityGeneratorSyste foreach (var result in rayCastResults) { - if (genQuery.HasComponent(result.HitEntity)) - closestResult = result; + if (!genQuery.HasComponent(result.HitEntity)) + continue; + closestResult = result; break; }