mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-26 02:30:40 +01:00
Fix Save/Load from WorldEdit GUI, fixes #90
This commit is contained in:
parent
3aa315f134
commit
51158eca9f
@ -588,9 +588,9 @@ worldedit.register_gui_function("worldedit_gui_save_load", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
worldedit.register_gui_handler("worldedit_gui_save", function(name, fields)
|
worldedit.register_gui_handler("worldedit_gui_save_load", 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
|
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_axis)
|
gui_filename[name] = tostring(fields.worldedit_gui_save_filename)
|
||||||
worldedit.show_page(name, "worldedit_gui_save_load")
|
worldedit.show_page(name, "worldedit_gui_save_load")
|
||||||
if fields.worldedit_gui_save_load_submit_save then
|
if fields.worldedit_gui_save_load_submit_save then
|
||||||
minetest.chatcommands["/save"].func(name, gui_filename[name])
|
minetest.chatcommands["/save"].func(name, gui_filename[name])
|
||||||
|
Loading…
Reference in New Issue
Block a user