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

@ -118,7 +118,7 @@ elseif rawget(_G, "inventory_plus") then --inventory++ installed
return true
elseif fields.worldedit_gui_exit then --return to original page
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
return true
end