Skip to content

Commit

Permalink
Fix seating_from_key_helper: use pname instead of player:get_player_n…
Browse files Browse the repository at this point in the history
…ame()
  • Loading branch information
Relatio authored and orwell96 committed Aug 27, 2020
1 parent 595f26b commit e4ccf8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advtrains/wagons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4ccf8f

Please sign in to comment.