mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 19:44:58 +01:00
Save 0.28s of init time by removing an unnecessary timer in light/LateInitialize (#71059)
Replaces a timer with just calling the proc directly. This saves 0.28s of making timer events. This timer exists as an artifact of being a `spawn (1)` since r4407. Local testing suggests it is completely unnecessary (lights work, lights break, new lights show)
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
if("bulb")
|
||||
if(prob(5))
|
||||
break_light_tube(TRUE)
|
||||
addtimer(CALLBACK(src, .proc/update, FALSE), 0.1 SECONDS)
|
||||
update(trigger = FALSE)
|
||||
|
||||
/obj/machinery/light/Destroy()
|
||||
var/area/local_area =get_room_area(src)
|
||||
|
||||
Reference in New Issue
Block a user