summaryrefslogtreecommitdiff
path: root/worldedit_gui/functionality.lua
diff options
context:
space:
mode:
Diffstat (limited to 'worldedit_gui/functionality.lua')
-rw-r--r--worldedit_gui/functionality.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/worldedit_gui/functionality.lua b/worldedit_gui/functionality.lua
index 5cbf8fa..fa2559a 100644
--- a/worldedit_gui/functionality.lua
+++ b/worldedit_gui/functionality.lua
@@ -699,7 +699,7 @@ worldedit.register_gui_handler("worldedit_gui_save_load", function(name, fields)
end)
worldedit.register_gui_function("worldedit_gui_lua", {
- name = "Run Lua",
+ name = "Run Lua", privs = minetest.chatcommands["/clearobjects"].privs,
get_formspec = function(name)
local code = gui_code[name]
return "size[8,6.5]" .. worldedit.get_formspec_header("worldedit_gui_lua") ..