Fix "lock couples" checkbox on wagon properties form
parent
b31229d62e
commit
648e501f46
|
@ -666,7 +666,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
wagon.seat_access[sgr] = fcont~="" and fcont or nil
|
wagon.seat_access[sgr] = fcont~="" and fcont or nil
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue