If any person, believing himself to be the owner by reason of a claim in law or equity founded on a public record, peacefully occupies and improves any land, and the land, upon judicial investigation, is held to belong to another, the value of the improvements shall be paid by the successful party to the occupant, or the person under whom and for whom he entered and holds, before the court rendering judgment or decree of eviction causes the possession to be delivered to the successful party.
KRS 381.460
Recodified 1942 Ky. Acts ch. 208, sec. 1, effective10/1/1942, from Ky. Stat. sec. 3728.