mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-25 10:10:41 +01:00
Fix 'Run Lua' button in WorldEdit GUI (fixes #121)
This commit is contained in:
parent
d040d324e8
commit
152707a322
@ -667,7 +667,7 @@ worldedit.register_gui_function("worldedit_gui_lua", {
|
||||
|
||||
worldedit.register_gui_handler("worldedit_gui_lua", function(name, fields)
|
||||
if fields.worldedit_gui_lua_run or fields.worldedit_gui_lua_transform then
|
||||
gui_code[name] = fields.worldedit_gui_lua_value
|
||||
gui_code[name] = fields.worldedit_gui_lua_code
|
||||
worldedit.show_page(name, "worldedit_gui_lua")
|
||||
if fields.worldedit_gui_lua_run then
|
||||
minetest.chatcommands["/lua"].func(name, gui_code[name])
|
||||
|
Loading…
Reference in New Issue
Block a user