mirror of
https://github.com/minetest-mods/i3.git
synced 2025-01-11 18:50:29 +01:00
Fix
This commit is contained in:
parent
325d6f30be
commit
4c4911eb4f
@ -1491,6 +1491,10 @@ local function get_items_fs(fs, data, player, full_height)
|
||||
|
||||
data.pagemax = max(1, ceil(#items / ipp))
|
||||
|
||||
if data.pagenum > data.pagemax then
|
||||
data.pagenum = data.pagemax
|
||||
end
|
||||
|
||||
if #items == 0 then
|
||||
local lbl = ES"No item to show"
|
||||
local icon, width, offset = PNG.no_result, 4, 2
|
||||
|
Loading…
Reference in New Issue
Block a user