You are lucky it didnt grind your whole knee cap off and it would have been the case with me if i didnt wear my protection gear. Learn lesson about gear. Bike will get fixed. There is no spare parts for you.

sad to read about your bin. I know how gutted I was when mine happened.

Get better and back on the road ASAP.