Fix solid rock/filter/expert belt

The two while loops before these checks, made sure that typeMod is always equal to 0. So I used a similar method to what berries use to make sure it gets the original typeMod.