1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-26 02:30:40 +01:00

Forgot this one during refactor (a31f955fb1)

This commit is contained in:
sfan5 2017-05-13 11:53:52 +02:00
parent 66b1fa032d
commit 3240167b13

View File

@ -734,7 +734,8 @@ 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", privs = minetest.chatcommands["/clearobjects"].privs, name = "Run Lua",
privs = we_privs("lua"),
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") ..