Fix wagon properties not saved on button click

master
orwell96 2017-01-29 21:24:03 +01:00
parent 724b03abb9
commit 4b63e8d9d6
1 changed files with 1 additions and 1 deletions

View File

@ -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]