Fix "lock couples" checkbox on wagon properties form

master
orwell96 2017-02-05 20:14:37 +01:00
parent b31229d62e
commit 648e501f46
1 changed files with 3 additions and 1 deletions

View File

@ -666,7 +666,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
wagon.seat_access[sgr] = fcont~="" and fcont or nil
end
end
wagon.lock_couples = fields.lock_couples == "true"
if fields.lock_couples then
wagon.lock_couples = fields.lock_couples == "true"
end
end
end
end