Merge pull request #12 from solareon/patch-1

fix: job crafting restrictions
This commit is contained in:
Jim Shield
2024-01-23 00:34:15 +00:00
committed by GitHub

View File

@@ -43,7 +43,7 @@ function craftingMenu(data) local hasjob = false
if Recipes[i].job then hasjob = false
for l, b in pairs(Recipes[i].job) do
hasjob = hasJob(l, nil, b)
if hasJob == true then break end
if hasjob == true then break end
end
end
local setheader, settext = "", ""
@@ -139,7 +139,8 @@ function makeItem(data)
startTempCam(cam)
for i = 1, amount do
for _, v in pairs(data.craft) do
for k, v in pairs(data.craft) do
if k ~= "amount" and k ~= "job" then
if type(v) == "table" then
for l, b in pairs(v) do
if crafting and progressBar({
@@ -177,6 +178,7 @@ function makeItem(data)
end
end
end
end
Wait(500)
end
stopTempCam()