diff options
author | orwell96 <orwell@bleipb.de> | 2018-06-18 18:54:00 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-06-18 18:54:00 +0200 |
commit | b59c89f35ad9df9dc50ff2029ad03676e9c7426d (patch) | |
tree | 91e2c332746ad43f5a2724321b144bd7bc241634 /advtrains | |
parent | a961e7f672bf8befd0e460f863a5aa3dc7bacba5 (diff) | |
download | advtrains-b59c89f35ad9df9dc50ff2029ad03676e9c7426d.tar.gz advtrains-b59c89f35ad9df9dc50ff2029ad03676e9c7426d.tar.bz2 advtrains-b59c89f35ad9df9dc50ff2029ad03676e9c7426d.zip |
Fix Boardcom and Wagon properties not being shown
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/wagons.lua | 4 |
1 files 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
|