This should fix it, why does our init update icons and not TG's?

This commit is contained in:
Artur
2021-07-30 01:28:10 +03:00
parent dc40dfca81
commit 2a670dcd43
2 changed files with 2 additions and 3 deletions

View File

@@ -25,7 +25,6 @@
pixel_x = -26
/obj/machinery/light_switch/Initialize()
. = ..()
if(istext(area))
area = text2path(area)
if(ispath(area))
@@ -37,7 +36,7 @@
if(!name)
name = "light switch ([area.name])"
update_appearance()
. = ..()
/obj/machinery/light_switch/update_appearance(updates=ALL)
. = ..()