fix: auto sell junk items
This commit is contained in:
@@ -1346,6 +1346,15 @@ function CategoryManager:SyncEquipmentSetCategories()
|
||||
insertPos = table.getn(cats.order) + 1
|
||||
end
|
||||
end
|
||||
if not insertPos then
|
||||
-- Insert before Junk category if it exists, otherwise at end of Main group
|
||||
for i, orderId in ipairs(cats.order) do
|
||||
if orderId == "Junk" then
|
||||
insertPos = i
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
if not insertPos then
|
||||
for i = table.getn(cats.order), 1, -1 do
|
||||
local existDef = cats.definitions[cats.order[i]]
|
||||
|
||||
Reference in New Issue
Block a user