From 55145a4e171ce08ea3030eb4b56810831c70c6e2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 24 Jan 2017 22:19:42 +0100 Subject: [PATCH] Tweak creative slider size --- mods/craftingpack/crafting/creative.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mods/craftingpack/crafting/creative.lua b/mods/craftingpack/crafting/creative.lua index 709ca3f4b4..db14ff3a55 100644 --- a/mods/craftingpack/crafting/creative.lua +++ b/mods/craftingpack/crafting/creative.lua @@ -203,8 +203,13 @@ crafting.set_creative_formspec = function(player, start_i, pagenum, show, page, reset_menu_item_bg() pagenum = math.floor(pagenum) or 1 local pagemax = math.floor((crafting.creative_inventory_size-1) / (9*5) + 1) - local slider_height = 4/pagemax - local slider_pos = slider_height*(pagenum-1)+2.25 + local slider_height + if pagemax == 1 then + slider_height = 4.525 + else + slider_height = 4/pagemax + end + local slider_pos = slider_height*(pagenum-1)+2.20 local name = "nix" local formspec = "" local main_list