]> git.lizzy.rs Git - worldedit.git/commitdiff
fix gui bug with back button (#116)
authortenplus1 <tenplus1@users.noreply.github.com>
Mon, 20 Jun 2016 16:05:47 +0000 (17:05 +0100)
committersfan5 <sfan5@live.de>
Mon, 20 Jun 2016 16:05:47 +0000 (18:05 +0200)
Fixed the Worldedit GUI problem where BACK button wouldn't return back to inventory plus menu.

worldedit_gui/init.lua

index 5f602acff4518e37e5f152aa172d50a252408678..57fd9a8889496c8d9ef7835d95bc5c0116a09c04 100644 (file)
@@ -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