adjust to new close_formspec feature (minetest 0d1c959)

this won't break compatibility with older minetest versions.
This commit is contained in:
orwell96 2016-11-23 19:28:39 +01:00
parent 1d6cd12895
commit cccdad4aeb
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -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