Foreclosure: Effect on Mineral Rights

I currently have mineral rights that are paying me a royalty. If my property were to be foreclosed,

would I still maintain my mineral rights or would they go back to the bank/mortgage lender.