From 2ebac878603552b3f187102c77a8a0c7ba10578e Mon Sep 17 00:00:00 2001 From: farie82 Date: Sun, 1 Nov 2020 18:26:34 +0100 Subject: [PATCH] Fixes a runtime when creating food (#14807) --- .../food_and_drinks/kitchen_machinery/kitchen_machine.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm b/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm index e0d0c5ec396..72782f532a6 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm @@ -320,12 +320,12 @@ if(O.reagents) O.reagents.del_reagent("nutriment") O.reagents.update_total() - O.reagents.trans_to(temp_reagents, O.reagents.total_volume) + O.reagents.trans_to(temp_reagents, O.reagents.total_volume, no_react = TRUE) // Don't react with the abstract holder please qdel(O) source.reagents.clear_reagents() for(var/e=1 to efficiency) //upgraded machine? make additional servings and split the ingredient reagents among each serving equally. var/obj/cooked = new recipe.result() - temp_reagents.trans_to(cooked, temp_reagents.total_volume/efficiency) + temp_reagents.trans_to(cooked, temp_reagents.total_volume/efficiency, no_react = TRUE) // Don't react with the abstract holder please cooked.forceMove(loc) temp_reagents.clear_reagents() var/obj/byproduct = recipe.get_byproduct() //if the recipe has a byproduct, handle returning that (such as re-usable candy moulds)