From 87d4c82e5d019bbbd0f5aef358232ca18f47768e Mon Sep 17 00:00:00 2001 From: KaadmY Date: Mon, 15 May 2017 14:50:24 -0700 Subject: [PATCH] Fix multiple craft output achievements, fixes #50 --- mods/crafting/api.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/crafting/api.lua b/mods/crafting/api.lua index 642a734..1b03a1a 100644 --- a/mods/crafting/api.lua +++ b/mods/crafting/api.lua @@ -213,7 +213,9 @@ function crafting.craft(player, wanted, wanted_count, output, items) end for _, func in ipairs(crafting.callbacks.on_craft) do - func(output, player) + for i = 1, output:get_count() do + func(output, player) + end end return {items = items, output = output}