mirror of
https://github.com/mt-mods/dreambuilder_hotbar.git
synced 2024-11-19 21:23:45 +01:00
describe range of hotbar lengths
This commit is contained in:
parent
b8f429c57f
commit
a7af7259af
2
init.lua
2
init.lua
@ -39,7 +39,7 @@ end)
|
||||
|
||||
minetest.register_chatcommand("hotbar", {
|
||||
params = "[size]",
|
||||
description = "Sets the size of your hotbar",
|
||||
description = "Sets the size of your hotbar, from 1 to 32 slots, default 16",
|
||||
func = function(name, slots)
|
||||
local size = set_hotbar_size(minetest.get_player_by_name(name), slots)
|
||||
player_hotbar_settings[name] = size
|
||||
|
Loading…
Reference in New Issue
Block a user