Now reuses shared vertex for adjacent blocks if they are of the same type.