This commit is contained in:
JohnCorby 2022-08-18 11:03:18 -07:00
parent fa4b3299c9
commit 8ac9c3df7b

View File

@ -29,10 +29,6 @@ internal class LightSensorPatches : QSBPatch
[HarmonyPatch(nameof(SingleLightSensor.OnSectorOccupantsUpdated))]
private static bool OnSectorOccupantsUpdated(SingleLightSensor __instance)
{
if (LightSensorManager.IsPlayerLightSensor(__instance))
{
return true;
}
if (!QSBWorldSync.AllObjectsReady)
{
return true;
@ -187,12 +183,9 @@ internal class LightSensorPatches : QSBPatch
#endregion
private static bool UpdateLocalIllumination(SingleLightSensor __instance)
{
if (LightSensorManager.IsPlayerLightSensor(__instance))
{
return true;
}
if (!QSBWorldSync.AllObjectsReady)
{
return true;