forked from nalc/h2omes
add command homegui to show home formspec
This commit is contained in:
parent
90f253d82d
commit
aa945c0694
7
init.lua
7
init.lua
|
@ -422,6 +422,13 @@ minetest.register_chatcommand("setpit", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_chatcommand("homegui", {
|
||||||
|
description = "Show home formspec",
|
||||||
|
privs = {home=true},
|
||||||
|
func = function (name, params)
|
||||||
|
h2omes.show_formspec_home(name)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
if (minetest.get_modpath("unified_inventory")) then
|
if (minetest.get_modpath("unified_inventory")) then
|
||||||
unified_inventory.register_button("home_formspec", {
|
unified_inventory.register_button("home_formspec", {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user