From 14393aff646658ef39cfde335604b315ad8ee249 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Thu, 18 Aug 2022 11:05:33 -0700 Subject: [PATCH] void return type --- .../LightSensorSync/Patches/LightSensorPatches.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs index 5ac849bb..a76cb157 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs @@ -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._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; }