From 6114542e33cf62a2c03ed5daba5e57cc5710ba87 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 9 Feb 2021 17:39:54 +0100 Subject: [PATCH] [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> --- code/modules/food_and_drinks/kitchen_machinery/griddle.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/food_and_drinks/kitchen_machinery/griddle.dm b/code/modules/food_and_drinks/kitchen_machinery/griddle.dm index c31c2790570..fab0183829c 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/griddle.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/griddle.dm @@ -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