From 35202f7000d954e9b982f8e2c54535058fd7be24 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Thu, 18 Jan 2024 15:33:51 +0000 Subject: [PATCH] add fix for recipes having no final amount added --- crafting.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/crafting.lua b/crafting.lua index 27bf336..80b9ac8 100644 --- a/crafting.lua +++ b/crafting.lua @@ -39,6 +39,7 @@ function craftingMenu(data) local hasjob = false for i = 1, #Recipes do for k, v in pairs(Recipes[i]) do if k ~= "amount" and k ~= "job" and k ~= "gang" then + if not Recipes[i]["amount"] then Recipes[i]["amount"] = 1 end if Recipes[i].job then hasjob = false for l, b in pairs(Recipes[i].job) do hasjob = hasJob(l, nil, b)