mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 19:44:58 +01:00
Fixes borg flashlight color picker not working (#53996)
This commit is contained in:
@@ -167,12 +167,7 @@
|
||||
return 1
|
||||
|
||||
if("PC_toggle_light")
|
||||
set_light_on(!light_on)
|
||||
if(light_on)
|
||||
set_light(comp_light_luminosity, 1, comp_light_color)
|
||||
else
|
||||
set_light(0)
|
||||
return TRUE
|
||||
return toggle_flashlight()
|
||||
|
||||
if("PC_light_color")
|
||||
var/mob/user = usr
|
||||
@@ -184,10 +179,7 @@
|
||||
if(color_hex2num(new_color) < 200) //Colors too dark are rejected
|
||||
to_chat(user, "<span class='warning'>That color is too dark! Choose a lighter one.</span>")
|
||||
new_color = null
|
||||
comp_light_color = new_color
|
||||
set_light_color(new_color)
|
||||
update_light()
|
||||
return TRUE
|
||||
return set_flashlight_color(new_color)
|
||||
|
||||
if("PC_Eject_Disk")
|
||||
var/param = params["name"]
|
||||
|
||||
Reference in New Issue
Block a user