From b59c89f35ad9df9dc50ff2029ad03676e9c7426d Mon Sep 17 00:00:00 2001 From: orwell96 Date: Mon, 18 Jun 2018 18:54:00 +0200 Subject: Fix Boardcom and Wagon properties not being shown --- advtrains/wagons.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index 2b2d2ef..6cc0072 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -1002,10 +1002,10 @@ function wagon:seating_from_key_helper(pname, fields, no) if fields.inv and self.has_inventory and self.get_inventory_formspec then minetest.show_formspec(player:get_player_name(), "advtrains_inv_"..self.id, self:get_inventory_formspec(player:get_player_name())) end - if fields.prop and self.owner==pname then + if fields.prop and data.owner==pname then self:show_wagon_properties(pname) end - if fields.bordcom and self.seat_groups[sgr].driving_ctrl_access and advtrains.check_driving_couple_protection(pname, self.owner, self.whitelist) then + if fields.bordcom and self.seat_groups[sgr].driving_ctrl_access and advtrains.check_driving_couple_protection(pname, data.owner, data.whitelist) then self:show_bordcom(pname) end if fields.dcwarn then -- cgit v1.2.3