From 6e8d2c55b0ae041bcefc3ec4a5c2777c8f4f5f59 Mon Sep 17 00:00:00 2001 From: mkalash Date: Sun, 4 Jan 2015 21:34:50 -0500 Subject: [PATCH] Adds stack amount check when loading materials into the exosuit fabricator. Fixes #7665 --- code/game/mecha/mech_fabricator.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm index e56dbe71e86..87b8375bbb4 100644 --- a/code/game/mecha/mech_fabricator.dm +++ b/code/game/mecha/mech_fabricator.dm @@ -826,7 +826,7 @@ src.overlays += "fab-load-[material]"//loading animation is now an overlay based on material type. No more spontaneous conversion of all ores to metal. -vey sleep(10) - while(src.resources[material] < res_max_amount && stack) + while(src.resources[material] < res_max_amount && stack.amount >= 1) src.resources[material] += amnt stack.use(1) count++