diff options
author | Alexander Weber <web.alexander@web.de> | 2017-06-16 23:16:22 +0200 |
---|---|---|
committer | Alexander Weber <web.alexander@web.de> | 2017-06-16 23:16:22 +0200 |
commit | 8d991881aad4bc1ce02903c02297fadb45c8e915 (patch) | |
tree | d76274795a942911fb8be883dea0b595e7da5509 /sfinv_page.lua | |
parent | 28d28390ce5d67f47db184cbbbc4ecd74be77eb2 (diff) |
get the new api working with sfinv and 3d_armor
Diffstat (limited to 'sfinv_page.lua')
-rw-r--r-- | sfinv_page.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfinv_page.lua b/sfinv_page.lua index 1155a71..060eb12 100644 --- a/sfinv_page.lua +++ b/sfinv_page.lua @@ -11,7 +11,8 @@ local dropdown_values = {} -- collect skins data local total_pages = 1 for i, skin in ipairs(skins.list) do - skin:set_meta("inv_page", math.floor((i-1) / 16)+1) + local page = math.floor((i-1) / 16)+1 + skin:set_meta("inv_page", page) skin:set_meta("inv_page_index", (i-1)%16+1) total_pages = page end |