mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 06:46:04 +01:00
Merge pull request #12 from solareon/patch-1
fix: job crafting restrictions
This commit is contained in:
@@ -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 = "", ""
|
||||||
@@ -139,7 +139,8 @@ function makeItem(data)
|
|||||||
startTempCam(cam)
|
startTempCam(cam)
|
||||||
|
|
||||||
for i = 1, amount do
|
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
|
if type(v) == "table" then
|
||||||
for l, b in pairs(v) do
|
for l, b in pairs(v) do
|
||||||
if crafting and progressBar({
|
if crafting and progressBar({
|
||||||
@@ -177,6 +178,7 @@ function makeItem(data)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
Wait(500)
|
Wait(500)
|
||||||
end
|
end
|
||||||
stopTempCam()
|
stopTempCam()
|
||||||
|
|||||||
Reference in New Issue
Block a user