mirror of
https://github.com/mt-mods/dreambuilder_hotbar.git
synced 2025-01-12 22:37:28 +01:00
add a 10-slot mode.
This commit is contained in:
parent
13bef47c8a
commit
9eda7c4459
2
init.lua
2
init.lua
@ -3,7 +3,7 @@ local maxslots = (string.sub(mtver.string, 1, 4) ~= "0.4.") and 32 or 23
|
||||
|
||||
local function validate_size(s)
|
||||
local size = s and tonumber(s) or 16
|
||||
if (size == 8 or size == 16 or size == 23 or size == 24 or size == 32)
|
||||
if (size == 8 or size == 10 or size == 16 or size == 23 or size == 24 or size == 32)
|
||||
and size <= maxslots then
|
||||
return size
|
||||
else
|
||||
|
BIN
textures/gui_hb_bg_10.png
Normal file
BIN
textures/gui_hb_bg_10.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 542 B |
Loading…
Reference in New Issue
Block a user