mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Fix creative slider disappearing in empty search
This commit is contained in:
parent
60744e81fb
commit
352f5a55b1
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz
|
|||
inv_size = 0
|
||||
end
|
||||
end
|
||||
local pagemax = math.floor((inv_size-1) / (9*5) + 1)
|
||||
local pagemax = math.max(1, math.floor((inv_size-1) / (9*5) + 1))
|
||||
local slider_height
|
||||
if pagemax == 1 then
|
||||
slider_height = 4.525
|
||||
|
|
Loading…
Reference in a new issue