His heir James VI lived at the castle in the 1680s, when the paint was barely dry.
The paint was flaking due to age in 1680.
mnli hypothesis: The paint was flaking due to age in 1680. premise: His heir James VI lived at the castle in the 1680s, when the paint was barely dry.