aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRelatio <Relatio@linux-forks.de>2020-08-27 19:18:52 +0200
committerorwell96 <orwell@bleipb.de>2020-08-27 19:18:52 +0200
commite4ccf8ffce10660ebf367517b12f9858fc572917 (patch)
tree3858829cd0134c5e3bc38a63dc271bd3c2e8ecdb
parent595f26b45010d8e18433daee1c35b12cc2a7eba5 (diff)
downloadadvtrains-e4ccf8ffce10660ebf367517b12f9858fc572917.tar.gz
advtrains-e4ccf8ffce10660ebf367517b12f9858fc572917.tar.bz2
advtrains-e4ccf8ffce10660ebf367517b12f9858fc572917.zip
Fix seating_from_key_helper: use pname instead of player:get_player_name()
-rw-r--r--advtrains/wagons.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index 71557fa..f2ff897 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -1171,7 +1171,7 @@ function wagon:seating_from_key_helper(pname, fields, no)
end
if fields.inv and self.has_inventory and self.get_inventory_formspec then
minetest.close_formspec(pname, "advtrains_seating_"..self.id)
- minetest.show_formspec(player:get_player_name(), "advtrains_inv_"..self.id, self:get_inventory_formspec(player:get_player_name(), make_inv_name(self.id)))
+ minetest.show_formspec(pname, "advtrains_inv_"..self.id, self:get_inventory_formspec(pname, make_inv_name(self.id)))
end
if fields.prop and data.owner==pname then
minetest.close_formspec(pname, "advtrains_seating_"..self.id)