summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenplus1 <tenplus1@users.noreply.github.com>2017-05-13 09:25:51 +0100
committersfan5 <sfan5@live.de>2017-05-13 11:17:45 +0200
commit0ce45a5900a7ae3ff952a9988df73c0a578f09ea (patch)
tree8f7be51b0f952c6accfc259d05d235932757db66
parent56f77a2f278f6ca1731c1f0efe5026ff5c9f4735 (diff)
Fix worldedit_gui_lua privs
This fixes the worldedit_gui_lua feature so that it requires certain privs to run.
-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") ..