update hotbar
This commit is contained in:
parent
46c59ad9ae
commit
454f6df80a
@ -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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user