Skip to content
Permalink
Browse files

Fix worldedit_gui_lua privs

This fixes the worldedit_gui_lua feature so that it requires certain privs to run.
  • Loading branch information
tenplus1 authored and sfan5 committed May 13, 2017
1 parent 56f77a2 commit 0ce45a5900a7ae3ff952a9988df73c0a578f09ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,

This comment has been minimized.

Copy link
@Thomas--S

Thomas--S May 13, 2017

Shouldn't this be /lua instead of /clearobjects ?

get_formspec = function(name)
local code = gui_code[name]
return "size[8,6.5]" .. worldedit.get_formspec_header("worldedit_gui_lua") ..

0 comments on commit 0ce45a5

Please sign in to comment.
You can’t perform that action at this time.