Fix wagon properties not saved on button click
authororwell96 <mono96.mml@gmail.com>
Sun, 29 Jan 2017 20:24:03 +0000 (21:24 +0100)
committerorwell96 <mono96.mml@gmail.com>
Sun, 29 Jan 2017 20:24:03 +0000 (21:24 +0100)
advtrains/advtrains/wagons.lua

index 9d63ab5..bf99718 100644 (file)
@@ -659,7 +659,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
                                if pname~=wagon.owner then\r
                                        return true\r
                                end\r
-                               if not fields.quit then\r
+                               if fields.save or not fields.quit then\r
                                        for sgr,sgrdef in pairs(wagon.seat_groups) do\r
                                                if fields["sgr_"..sgr] then\r
                                                        local fcont = fields["sgr_"..sgr]\r