Merge branch 'dev' into dream-rafts

This commit is contained in:
JohnCorby 2022-03-26 22:24:29 -07:00
commit 4a6804c19c

View File

@ -17,6 +17,12 @@ internal class QSBLightSensor : WorldObject<SingleLightSensor>
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;