mirror of
https://github.com/minetest-mods/i3.git
synced 2025-01-12 03:00: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))
|
data.pagemax = max(1, ceil(#items / ipp))
|
||||||
|
|
||||||
|
if data.pagenum > data.pagemax then
|
||||||
|
data.pagenum = data.pagemax
|
||||||
|
end
|
||||||
|
|
||||||
if #items == 0 then
|
if #items == 0 then
|
||||||
local lbl = ES"No item to show"
|
local lbl = ES"No item to show"
|
||||||
local icon, width, offset = PNG.no_result, 4, 2
|
local icon, width, offset = PNG.no_result, 4, 2
|
||||||
|
Loading…
Reference in New Issue
Block a user