aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-01-29 21:24:03 +0100
committerorwell96 <mono96.mml@gmail.com>2017-01-29 21:24:03 +0100
commit4b63e8d9d6ac5c38936e4a5fc45fa5f3709ba0b7 (patch)
tree62b762010f50061bbc212abf5ca10fb47d6c0460 /advtrains
parent724b03abb983eb93c124cef6039bcf2ea4125335 (diff)
downloadadvtrains-4b63e8d9d6ac5c38936e4a5fc45fa5f3709ba0b7.tar.gz
advtrains-4b63e8d9d6ac5c38936e4a5fc45fa5f3709ba0b7.tar.bz2
advtrains-4b63e8d9d6ac5c38936e4a5fc45fa5f3709ba0b7.zip
Fix wagon properties not saved on button click
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/advtrains/wagons.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains/wagons.lua b/advtrains/advtrains/wagons.lua
index 9d63ab5..bf99718 100644
--- a/advtrains/advtrains/wagons.lua
+++ b/advtrains/advtrains/wagons.lua
@@ -659,7 +659,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if pname~=wagon.owner then
return true
end
- if not fields.quit then
+ if fields.save or not fields.quit then
for sgr,sgrdef in pairs(wagon.seat_groups) do
if fields["sgr_"..sgr] then
local fcont = fields["sgr_"..sgr]