mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #10572 from VOREStation/upstream-merge-8118
[MIRROR] Fixes infinite loop following cooking error
This commit is contained in:
committed by
Chompstation Bot
parent
d5ca48ba11
commit
36b9a379ac
@@ -192,6 +192,16 @@
|
|||||||
/datum/recipe/proc/make_food(var/obj/container as obj)
|
/datum/recipe/proc/make_food(var/obj/container as obj)
|
||||||
if(!result)
|
if(!result)
|
||||||
log_runtime(EXCEPTION("<span class='danger'>Recipe [type] is defined without a result, please bug report this.</span>"))
|
log_runtime(EXCEPTION("<span class='danger'>Recipe [type] is defined without a result, please bug report this.</span>"))
|
||||||
|
if(istype(container, /obj/machinery/microwave))
|
||||||
|
var/obj/machinery/microwave/M = container
|
||||||
|
M.dispose(FALSE)
|
||||||
|
|
||||||
|
else if(istype(container, /obj/item/weapon/reagent_containers/cooking_container))
|
||||||
|
var/obj/item/weapon/reagent_containers/cooking_container/CC = container
|
||||||
|
CC.clear()
|
||||||
|
|
||||||
|
container.visible_message(SPAN_WARNING("[container] inexplicably spills, and its contents are lost!"))
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user