fix: skip amount and job tables

This commit is contained in:
solareon
2024-01-22 22:39:16 +00:00
parent 2bf04f69cf
commit e541201a08

View File

@@ -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()