diff --git a/mods/creative/inventory.lua b/mods/creative/inventory.lua index 345d9f2..27335cf 100644 --- a/mods/creative/inventory.lua +++ b/mods/creative/inventory.lua @@ -1,3 +1,6 @@ +local worldpath = minetest.get_worldpath() +local worldname = worldpath:match("/([%w%s_]+)$") or worldpath:match("\\([%w%s_]+)$") + local player_inventory = {} function creative.init_creative_inventory(player_name) @@ -169,7 +172,8 @@ function creative.register_tab(name, title, items) else for item in pairs(fields) do if item:find(":") then - if not is_mapmaker and not is_teacher then + if worldname:sub(1,6) ~= "build_" and + not is_mapmaker and not is_teacher then minetest.chat_send_player(player_name, minetest.colorize("#FF0000", "ERROR: Privilege 'mapmaker' or 'teacher'" .. diff --git a/mods/worldedit_modpack/worldedit_commands/depends.txt b/mods/worldedit_modpack/worldedit_commands/depends.txt index df8caff..c91fa61 100644 --- a/mods/worldedit_modpack/worldedit_commands/depends.txt +++ b/mods/worldedit_modpack/worldedit_commands/depends.txt @@ -1 +1,2 @@ -worldedit \ No newline at end of file +worldedit +utils \ No newline at end of file