Wow, he was willing to sabotage you for the sake of his own selfish interest, for someone that invited you to come and have a piece of the cake, he decided to take it all for himself, if that farmer wasn't a man that frown on dishonesty he could have gotten away with it or worse
Such friends are not meant to be kept around, they do more harm than good.
Such friendships are burden. Not worth the energy at all.