fix singulo generator triggering failsafe when field is obstructed (#39593)

fix singulo gen failsafe when field obstructed
This commit is contained in:
qwerltaz 2025-10-10 21:41:21 +02:00 • committed by GitHub
parent 1fca29a167
commit 766c2b8759
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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