[MIRROR] Fixes pancakes not being able to be made on the griddle (#3240)

* Fix pancakes not being able to be made on the griddle (#56730)

Puts the signal registration in initialization, and not in
deconstruction. Fixes #56629

* Fixes pancakes not being able to be made on the griddle

Co-authored-by: necromanceranne <40847847+necromanceranne@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-02-09 16:39:54 +00:00
committed by GitHub
co-authored by necromanceranne
parent d7d8f5ca52
commit 6114542e33
@@ -27,6 +27,7 @@
grill_loop = new(list(src), FALSE)
if(isnum(variant))
variant = rand(1,3)
RegisterSignal(src, COMSIG_ATOM_EXPOSE_REAGENT, .proc/on_expose_reagent)
/obj/machinery/griddle/crowbar_act(mob/living/user, obj/item/I)
. = ..()
@@ -35,7 +36,6 @@
if(default_deconstruction_crowbar(I, ignore_panel = TRUE))
return
variant = rand(1,3)
RegisterSignal(src, COMSIG_ATOM_EXPOSE_REAGENT, .proc/on_expose_reagent)
/obj/machinery/griddle/proc/on_expose_reagent(atom/parent_atom, datum/reagent/exposing_reagent, reac_volume)
SIGNAL_HANDLER