From 8a9be2d3cb4b613fe577ff42924ec5e381ecf27b Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 10 Dec 2017 12:03:42 -0500 Subject: [PATCH] INVOKE_ASYNC is the exception not the rule! --- code/datums/components/material_container.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/datums/components/material_container.dm b/code/datums/components/material_container.dm index c6c42229802..d8b3b058dda 100644 --- a/code/datums/components/material_container.dm +++ b/code/datums/components/material_container.dm @@ -67,9 +67,10 @@ if(!has_space(material_amount)) to_chat(user, "[parent] is full. Please remove metal or glass from [parent] in order to insert more.") return - INVOKE_ASYNC(src, .proc/user_insert, I, user) //It wasn't returning COMPONENT_NO_AFTERATTACK properly without this being specifically asynced. + user_insert(I, user) /datum/component/material_container/proc/user_insert(obj/item/I, mob/living/user) + set waitfor = FALSE var/requested_amount var/Itype = I.type if(ispath(Itype, /obj/item/stack) && precise_insertion)