diff --git a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs index 6a9bfbc2..eb3ebb21 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs @@ -70,7 +70,7 @@ internal class LightSensorPatches : QSBPatch } case LightSourceType.FLASHLIGHT: { - if (source is Flashlight light && light == Locator.GetFlashlight()) + if (Locator.GetFlashlight() == source as Flashlight) { var position = Locator.GetPlayerCamera().transform.position; var to = __instance.transform.position - position;