1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-25 18:20:38 +01:00

fix gui bug with back button (#116)

Fixed the Worldedit GUI problem where BACK button wouldn't return back to inventory plus menu.
This commit is contained in:
tenplus1 2016-06-20 17:05:47 +01:00 committed by sfan5
parent 61ab240cea
commit b23e92921c

View File

@ -118,7 +118,7 @@ elseif rawget(_G, "inventory_plus") then --inventory++ installed
return true return true
elseif fields.worldedit_gui_exit then --return to original page elseif fields.worldedit_gui_exit then --return to original page
if gui_player_formspecs[name] then if gui_player_formspecs[name] then
inventory_plus.set_inventory_formspec(player, gui_player_formspecs[name]) inventory_plus.set_inventory_formspec(player, inventory_plus.get_formspec(player, "main"))
end end
return true return true
end end