mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Lights tubes respect lightswitch state on insertion (#10991)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
510ecab44a
commit
1ada348e49
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user