summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2016-10-12 20:10:36 +0200
committersfan5 <sfan5@live.de>2016-10-12 20:10:36 +0200
commit152707a32243cf33fb0f4ff740147d0cb268246b (patch)
tree4450dd945877ff03c7a73ca18683443bc952961d
parentd040d324e8b2b78bafbd0a657df079f0921e4002 (diff)
Fix 'Run Lua' button in WorldEdit GUI (fixes #121)
-rw-r--r--worldedit_gui/functionality.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/worldedit_gui/functionality.lua b/worldedit_gui/functionality.lua
index c358a8c..535c5ce 100644
--- a/worldedit_gui/functionality.lua
+++ b/worldedit_gui/functionality.lua
@@ -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])