Add check to on join to check for not creative

master
metalstache 2013-02-18 13:01:18 -05:00
parent 0426495233
commit 4f7814a2bd
1 changed files with 3 additions and 1 deletions

View File

@ -1740,6 +1740,8 @@ end
minetest.register_on_punchnode(on_punchnode)
minetest.register_on_joinplayer(function(obj)
obj:set_inventory_formspec(obj:get_inventory_formspec.."background[-0.5,-0.5;8,8;default_player_gui.png]")
if minetest.setting_getbool("creative_mode") then
obj:set_inventory_formspec(obj:get_inventory_formspec.."background[-0.5,-0.5;8,8;default_player_gui.png]")
end
end)
-- END