adjust to new close_formspec feature (minetest 0d1c959)
this won't break compatibility with older minetest versions.
This commit is contained in:
parent
1d6cd12895
commit
cccdad4aeb
BIN
advtrains.zip
BIN
advtrains.zip
Binary file not shown.
|
@ -486,7 +486,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if val and val.type~="INV" then
|
if val and val.type~="INV" then
|
||||||
--get on
|
--get on
|
||||||
wagon:get_on(player, val.index)
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue