This commit is contained in:
JohnCorby 2022-08-15 23:42:43 -07:00
parent 54a36104d8
commit c235f78c50

View File

@ -153,6 +153,7 @@ internal class LightSensorPatches : QSBPatch
}
foreach (var lightSource in __instance._lightSources)
{
// todo do all the funny FUCKING checks
if ((__instance._lightSourceMask & lightSource.GetLightSourceType()) == lightSource.GetLightSourceType() &&
lightSource.CheckIlluminationAtPoint(sensorWorldPos, __instance._sensorRadius, __instance._maxDistance))
{