From cccdad4aeb891e2f4fb2d546bf7bea2d07270d44 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 23 Nov 2016 19:28:39 +0100 Subject: adjust to new close_formspec feature (minetest 0d1c959) this won't break compatibility with older minetest versions. --- advtrains.zip | Bin 1575411 -> 1575449 bytes wagons.lua | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/advtrains.zip b/advtrains.zip index 75c8131..a3c834d 100644 Binary files a/advtrains.zip and b/advtrains.zip differ 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 -- cgit v1.2.3