Skip to content
Permalink
Browse files
Fix Save/Load from WorldEdit GUI, fixes #90
  • Loading branch information
sfan5 committed Jan 5, 2016
1 parent 3aa315f commit 51158eca9f28a95d4aae8dfe79996d710569f613
Showing 1 changed file with 3 additions and 3 deletions.
@@ -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])

0 comments on commit 51158ec

Please sign in to comment.