The party so entering upon land may tender to the party injured amends therefor, and if, in case of application to the court of common pleas by the party injured, the damages finally assessed do not exceed the amount tendered, the party making said application shall not recover costs, otherwise the prevailing party shall recover costs.
74 P.S. § 123