void return type

This commit is contained in:
JohnCorby 2022-08-18 11:05:33 -07:00
parent f86bf56a1d
commit 14393aff64

View File

@ -186,18 +186,18 @@ internal class LightSensorPatches : QSBPatch
#endregion
private static bool UpdateLocalIllumination(SingleLightSensor __instance)
private static void UpdateLocalIllumination(SingleLightSensor __instance)
{
if (!QSBWorldSync.AllObjectsReady)
{
return true;
return;
}
var qsbLightSensor = __instance.GetWorldObject<QSBLightSensor>();
qsbLightSensor._locallyIlluminated = false;
if (__instance._lightSources == null || __instance._lightSources.Count == 0)
{
return false;
return;
}
var sensorWorldPos = __instance.transform.TransformPoint(__instance._localSensorOffset);
var sensorWorldDir = Vector3.zero;
@ -272,7 +272,6 @@ internal class LightSensorPatches : QSBPatch
}
}
}
return false;
}