Make gui part of default
This commit is contained in:
parent
ff80b87783
commit
49ad1c1bf7
4 changed files with 29 additions and 33 deletions
|
@ -146,15 +146,11 @@ minetest.register_on_joinplayer(function(player)
|
|||
player:set_local_animation({x=0, y=79}, {x=168, y=187}, {x=189, y=198}, {x=200, y=219}, 30)
|
||||
|
||||
-- set GUI
|
||||
if minetest.setting_getbool("creative_mode") then
|
||||
-- creative.set_creative_formspec(player, 0, 1)
|
||||
else
|
||||
player:set_inventory_formspec(gui_suvival_form)
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
player:set_inventory_formspec(default.gui_suvival_form)
|
||||
end
|
||||
minetest.after(0.5,function()
|
||||
player:hud_set_hotbar_image("gui_hotbar.png")
|
||||
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")
|
||||
end)
|
||||
player:hud_set_hotbar_image("gui_hotbar.png")
|
||||
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")
|
||||
end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue