summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2017-05-13 11:53:52 +0200
committersfan5 <sfan5@live.de>2017-05-13 11:53:52 +0200
commit3240167b13cce44fd007c9a088bf9445a6b26ed4 (patch)
tree278ccd22b92dbff8fbbfbf3cb863f1b844b63dfe
parent66b1fa032da0c0b08597ca1b38145eba9d6ce54b (diff)
Forgot this one during refactor (a31f955fb1e5c512f4559452aa65f590fbbc8d6c)
-rw-r--r--worldedit_gui/functionality.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/worldedit_gui/functionality.lua b/worldedit_gui/functionality.lua
index d9c7cf5..17a8a79 100644
--- a/worldedit_gui/functionality.lua
+++ b/worldedit_gui/functionality.lua
@@ -734,7 +734,8 @@ worldedit.register_gui_handler("worldedit_gui_save_load", function(name, fields)
end)
worldedit.register_gui_function("worldedit_gui_lua", {
- name = "Run Lua", privs = minetest.chatcommands["/clearobjects"].privs,
+ name = "Run Lua",
+ privs = we_privs("lua"),
get_formspec = function(name)
local code = gui_code[name]
return "size[8,6.5]" .. worldedit.get_formspec_header("worldedit_gui_lua") ..