diff --git a/QSB/EchoesOfTheEye/LightSensorSync/WorldObjects/QSBLightSensor.cs b/QSB/EchoesOfTheEye/LightSensorSync/WorldObjects/QSBLightSensor.cs index 52dc4535..042ac136 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/WorldObjects/QSBLightSensor.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/WorldObjects/QSBLightSensor.cs @@ -17,6 +17,12 @@ internal class QSBLightSensor : WorldObject public void SetEnabled(bool enabled) { + if (AttachedObject._sector.ContainsAnyOccupants(DynamicOccupant.Player | DynamicOccupant.Probe)) + { + // local player is in sector, do not disable lights + return; + } + if (enabled && !AttachedObject.enabled) { AttachedObject.enabled = true;