fix: auto sell junk items

This commit is contained in:
Vati
2026-02-28 04:13:23 +04:00
parent 4fdd2ea052
commit 88ce45b045
6 changed files with 190 additions and 3 deletions
+9
View File
@@ -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]]