Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 0ce45a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worldedit_gui/functionality.lua
Expand Up @@ -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") ..
Expand Down

0 comments on commit 0ce45a5

Please sign in to comment.