mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-25 10:10:41 +01:00
Fix worldedit_gui_lua privs
This fixes the worldedit_gui_lua feature so that it requires certain privs to run.
This commit is contained in:
parent
56f77a2f27
commit
0ce45a5900
@ -699,7 +699,7 @@ worldedit.register_gui_handler("worldedit_gui_save_load", function(name, fields)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
worldedit.register_gui_function("worldedit_gui_lua", {
|
worldedit.register_gui_function("worldedit_gui_lua", {
|
||||||
name = "Run Lua",
|
name = "Run Lua", privs = minetest.chatcommands["/clearobjects"].privs,
|
||||||
get_formspec = function(name)
|
get_formspec = function(name)
|
||||||
local code = gui_code[name]
|
local code = gui_code[name]
|
||||||
return "size[8,6.5]" .. worldedit.get_formspec_header("worldedit_gui_lua") ..
|
return "size[8,6.5]" .. worldedit.get_formspec_header("worldedit_gui_lua") ..
|
||||||
|
Loading…
Reference in New Issue
Block a user