mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-05 07:13:51 +01:00
Fix creative slider disappearing in empty search
This commit is contained in:
parent
60744e81fb
commit
352f5a55b1
@ -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 New Issue
Block a user