summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2016-01-05 12:42:01 +0100
committersfan5 <sfan5@live.de>2016-01-05 12:42:01 +0100
commit51158eca9f28a95d4aae8dfe79996d710569f613 (patch)
treee1d9adb515d6072c0417edf447df116c45b447da
parent3aa315f134bd8da41af9d21a7da5dea77005952f (diff)
Fix Save/Load from WorldEdit GUI, fixes #90
-rw-r--r--worldedit_gui/functionality.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/worldedit_gui/functionality.lua b/worldedit_gui/functionality.lua
index e812bf5..c131612 100644
--- a/worldedit_gui/functionality.lua
+++ b/worldedit_gui/functionality.lua
@@ -588,9 +588,9 @@ worldedit.register_gui_function("worldedit_gui_save_load", {
end,
})
-worldedit.register_gui_handler("worldedit_gui_save", function(name, fields)
- if fields.worldedit_gui_save_load_submit_save or worldedit_gui_save_load_submit_allocate or worldedit_gui_save_load_submit_load then
- gui_filename[name] = tostring(fields.worldedit_gui_save_axis)
+worldedit.register_gui_handler("worldedit_gui_save_load", function(name, fields)
+ if fields.worldedit_gui_save_load_submit_save or fields.worldedit_gui_save_load_submit_allocate or fields.worldedit_gui_save_load_submit_load then
+ gui_filename[name] = tostring(fields.worldedit_gui_save_filename)
worldedit.show_page(name, "worldedit_gui_save_load")
if fields.worldedit_gui_save_load_submit_save then
minetest.chatcommands["/save"].func(name, gui_filename[name])