From 01ed70c6f17f9fa5caef4e1373e5cc144d37b912 Mon Sep 17 00:00:00 2001 From: Verkister Date: Sun, 16 Apr 2023 10:54:18 +0300 Subject: [PATCH] Fixes trash grinder initialize linkage Ironic that the thing broke because i removed a "break" haha --- modular_chomp/code/modules/recycling/v_garbosystem.dm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modular_chomp/code/modules/recycling/v_garbosystem.dm b/modular_chomp/code/modules/recycling/v_garbosystem.dm index 4a8d0bdd7b..d44fa3a696 100644 --- a/modular_chomp/code/modules/recycling/v_garbosystem.dm +++ b/modular_chomp/code/modules/recycling/v_garbosystem.dm @@ -18,11 +18,14 @@ . = ..() for(var/dir in cardinal) src.crusher = locate(/obj/machinery/recycling/crusher, get_step(src, dir)) - src.button = locate(/obj/machinery/button/garbosystem, get_step(src, dir)) - if(crusher) + if(src.crusher) crusher.hand_fed = FALSE - if(button) + break + for(var/dir in cardinal) + src.button = locate(/obj/machinery/button/garbosystem, get_step(src, dir)) + if(src.button) button.grinder = src + break return /obj/machinery/v_garbosystem/attack_hand(mob/living/user as mob)