summaryrefslogtreecommitdiff
path: root/worldedit_gui
diff options
context:
space:
mode:
authortenplus1 <tenplus1@users.noreply.github.com>2016-06-20 17:05:47 +0100
committersfan5 <sfan5@live.de>2016-06-20 18:05:47 +0200
commitb23e92921c4e6f380767ca4be82608bb3de66483 (patch)
treead96c5a1f54d6a3d3c9be39c25d2e5a65c15aa1a /worldedit_gui
parent61ab240ceac0ce20f19cbdccdecfd3028cf6893a (diff)
fix gui bug with back button (#116)
Fixed the Worldedit GUI problem where BACK button wouldn't return back to inventory plus menu.
Diffstat (limited to 'worldedit_gui')
-rw-r--r--worldedit_gui/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/worldedit_gui/init.lua b/worldedit_gui/init.lua
index 5f602ac..57fd9a8 100644
--- a/worldedit_gui/init.lua
+++ b/worldedit_gui/init.lua
@@ -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