diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-11-23 19:28:39 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-11-23 19:28:39 +0100 |
commit | cccdad4aeb891e2f4fb2d546bf7bea2d07270d44 (patch) | |
tree | 5646988344f2194df32920a175e2607e27e3d07a | |
parent | 1d6cd1289513f6674ef5782d89bdc6d3405f176b (diff) | |
download | advtrains-cccdad4aeb891e2f4fb2d546bf7bea2d07270d44.tar.gz advtrains-cccdad4aeb891e2f4fb2d546bf7bea2d07270d44.tar.bz2 advtrains-cccdad4aeb891e2f4fb2d546bf7bea2d07270d44.zip |
adjust to new close_formspec feature (minetest 0d1c959)
this won't break compatibility with older minetest versions.
-rw-r--r-- | advtrains.zip | bin | 1575411 -> 1575449 bytes | |||
-rw-r--r-- | wagons.lua | 3 |
2 files changed, 2 insertions, 1 deletions
diff --git a/advtrains.zip b/advtrains.zip Binary files differindex 75c8131..a3c834d 100644 --- a/advtrains.zip +++ b/advtrains.zip @@ -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
|