Adds stack amount check when loading materials into the exosuit fabricator. Fixes #7665

This commit is contained in:
mkalash
2015-01-04 21:34:50 -05:00
parent ec9b46399b
commit 6e8d2c55b0
+1 -1
View File
@@ -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++