From 454f6df80a1c9ba9b990622daa9e57beb40cf9b4 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Thu, 25 Mar 2021 01:08:43 -0400 Subject: [PATCH] update hotbar --- mods/dreambuilder_hotbar/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/dreambuilder_hotbar/init.lua b/mods/dreambuilder_hotbar/init.lua index a0d63cf3..e8dfbc1b 100644 --- a/mods/dreambuilder_hotbar/init.lua +++ b/mods/dreambuilder_hotbar/init.lua @@ -9,7 +9,7 @@ end local function validate_size(s) local size = s and tonumber(s) or 16 - return math.max(1, math.min(size, 32)) + return math.floor(0.5 + math.max(1, math.min(size, 32))) end local hotbar_size_default = validate_size(minetest.settings:get("hotbar_size"))