542. Compensation limitation by reason of breach of covenant of the tenancy.

No compensation is payable to a tenant1 for crops or produce grown, seeds sown, cultivations, fallows or acts of husbandry performed, or pasture laid down, in breach of the terms of a written contract of tenancy2, unless the growing of the crops or produce, the sowing of the seeds, the performance of the cultivations, the fallows or acts of husbandry, or the laying down of the pasture was reasonably necessary in consequence of the giving of a direction under the