Fix multiple craft output achievements, fixes #50

This commit is contained in:
KaadmY 2017-05-15 14:50:24 -07:00
parent 014c39c886
commit 87d4c82e5d

View File

@ -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}