[MIRROR] Lights tubes respect lightswitch state on insertion (#10991)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-06-02 05:25:36 -07:00
committed by GitHub
parent 510ecab44a
commit 1ada348e49

View File

@@ -595,7 +595,7 @@ var/global/list/light_type_cache = list()
installed_light = L
L.loc = src //Move it into the socket!
on = powered()
on = powered() && !turned_off() // Do not instantly turn on lights if the area lightswitch is off
update()
if(on && rigged)