fix: hasjob

Fixes broken crafting because the wrapper function is called hasJob with a capital J while the variable is called hasjob
This commit is contained in:
Solareon
2024-01-22 12:50:03 -07:00
committed by GitHub
parent 3e067c8492
commit 2bf04f69cf

View File

@@ -43,7 +43,7 @@ function craftingMenu(data) local hasjob = false
if Recipes[i].job then hasjob = false if Recipes[i].job then hasjob = false
for l, b in pairs(Recipes[i].job) do for l, b in pairs(Recipes[i].job) do
hasjob = hasJob(l, nil, b) hasjob = hasJob(l, nil, b)
if hasJob == true then break end if hasjob == true then break end
end end
end end
local setheader, settext = "", "" local setheader, settext = "", ""
@@ -434,4 +434,4 @@ function stashhasItem(stashItems, items, amount)
end end
for k, v in pairs(hasTable) do if v.hasItem == false then return false, hasTable end end for k, v in pairs(hasTable) do if v.hasItem == false then return false, hasTable end end
return true, hasTable return true, hasTable
end end