aboutsummaryrefslogtreecommitdiff
path: root/wagons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'wagons.lua')
-rw-r--r--wagons.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/wagons.lua b/wagons.lua
index 717fa2f..7a99bca 100644
--- a/wagons.lua
+++ b/wagons.lua
@@ -486,7 +486,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if val and val.type~="INV" then
--get on
wagon:get_on(player, val.index)
- minetest.show_formspec(player:get_player_name(), "none", "")
+ --will work with the new close_formspec functionality. close exactly this formspec.
+ minetest.show_formspec(player:get_player_name(), formname, "")
end
end
end