Skip to content

Commit

Permalink
Fix Save/Load from WorldEdit GUI, fixes #90
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jan 5, 2016
1 parent 3aa315f commit 51158ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worldedit_gui/functionality.lua
Expand Up @@ -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])
Expand Down

0 comments on commit 51158ec

Please sign in to comment.