mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
Merge branch 'dev' into dream-rafts
This commit is contained in:
commit
4a6804c19c
@ -17,6 +17,12 @@ internal class QSBLightSensor : WorldObject<SingleLightSensor>
|
|||||||
|
|
||||||
public void SetEnabled(bool enabled)
|
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)
|
if (enabled && !AttachedObject.enabled)
|
||||||
{
|
{
|
||||||
AttachedObject.enabled = true;
|
AttachedObject.enabled = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user