tidy
This commit is contained in:
parent
9bcefa6dab
commit
eb891013f2
@ -176,15 +176,10 @@ function creative.register_tab(name, title, items)
|
||||
})
|
||||
end
|
||||
|
||||
--minetest.register_on_joinplayer(function(player)
|
||||
-- creative.update_creative_inventory(player:get_player_name(), minetest.registered_items)
|
||||
--end)
|
||||
|
||||
-- Only add a single 'Creative' tab with search ability for all items
|
||||
creative.register_tab("all", "Creative", minetest.registered_items)
|
||||
--creative.register_tab("nodes", "Nodes", minetest.registered_nodes)
|
||||
--creative.register_tab("tools", "Tools", minetest.registered_tools)
|
||||
--creative.register_tab("craftitems", "Items", minetest.registered_craftitems)
|
||||
|
||||
-- Set player homepage to 'Creative' tab if game mode or priv set
|
||||
local old_homepage_name = sfinv.get_homepage_name
|
||||
function sfinv.get_homepage_name(player)
|
||||
if creative.is_enabled_for(player:get_player_name()) then
|
||||
|
Loading…
x
Reference in New Issue
Block a user