Minor bugfix

Ensures light is properly removed from source tile if Tether is somehow removed or destroyed. Re-enables missing files.
This commit is contained in:
Haha26315
2022-09-12 20:18:50 -04:00
parent 14e826e1cd
commit 8b3dbd6b90
2 changed files with 4 additions and 0 deletions
@@ -103,11 +103,13 @@
/obj/machinery/safety_tether/Destroy()
QDEL_NULL(radio)
GLOB.safety_tethers_list -= src
light_source.set_light(0)
. = ..()
/obj/machinery/safety_tether/doMove(atom/destination)
. = ..()
//ensures light is properly centered around the tether. Removes lighting system's pixel approximation that breaks it.
light_source.set_light(0)
light_source = get_turf(src)
return .