mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-16 16:15:24 +00:00
QSBLightSensor: don't disable lights if local player is still in the sector :))
This commit is contained in:
parent
e44f6615d2
commit
dbec556dd3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user