Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Xertis committed Jan 19, 2025
1 parent fde6164 commit 3c0b64b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions res/layouts/pages/content.xml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function reposition_func(pack)
local indx = table.index(tbl, pack) - 1
local pos = {0, (SIZE + INTERVAL) * indx + STEP}

return pos
return pos[1], pos[2]
end


Expand Down Expand Up @@ -242,15 +242,15 @@ function refresh()
packinfo.index = i
callback = not table.has(base_packs, id) and string.format('move_pack("%s")', id) or nil
packinfo.error = check_dependencies(packinfo)
place_pack(packs_cur, packinfo, callback, string.format('reposition_func("%s")[1],reposition_func("%s")[2]', packinfo.id, packinfo.id))
place_pack(packs_cur, packinfo, callback, string.format('reposition_func("%s")', packinfo.id))
end

for i,id in ipairs(packs_available) do
local packinfo = packinfos[id]
packinfo.index = i
callback = string.format('move_pack("%s")', id)
packinfo.error = check_dependencies(packinfo)
place_pack(packs_add, packinfo, callback, string.format('reposition_func("%s")[1],reposition_func("%s")[2]', packinfo.id, packinfo.id))
place_pack(packs_add, packinfo, callback, string.format('reposition_func("%s")', packinfo.id))
end

apply_movements(packs_cur, packs_add)
Expand Down

0 comments on commit 3c0b64b

Please sign in to comment.