From 54a36104d8f5de70d128b9e08c3953e4db37a569 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Mon, 15 Aug 2022 23:42:32 -0700 Subject: [PATCH] mm forgor --- .../LightSensorSync/Patches/LightSensorPatches.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs index aaacb2af..c79a0f34 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs @@ -54,6 +54,8 @@ internal class LightSensorPatches : QSBPatch { if (__instance._illuminated) { + qsbLightSensor._locallyIlluminated = false; + qsbLightSensor.OnDetectLocalDarkness?.Invoke();; // wait because someone could send a message getting ownership again // i hate this so fucking much Delay.RunFramesLater(10, () => @@ -111,12 +113,12 @@ internal class LightSensorPatches : QSBPatch } if (!locallyIlluminated && qsbLightSensor._locallyIlluminated) { - qsbLightSensor.OnDetectLocalLight.Invoke(); + qsbLightSensor.OnDetectLocalLight?.Invoke(); return false; } if (locallyIlluminated && !qsbLightSensor._locallyIlluminated) { - qsbLightSensor.OnDetectLocalDarkness.Invoke(); + qsbLightSensor.OnDetectLocalDarkness?.Invoke(); } return false;