Skip to content

Commit a5e7a45

Browse files
committed
fix: avoid using deprecated registry
1 parent 4fa1078 commit a5e7a45

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/kotlin/io/github/samarium150/minecraft/mod/structures_compass/client/init/ItemPredicateRegistry.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.html>.
1616
*/
17-
1817
package io.github.samarium150.minecraft.mod.structures_compass.client.init
1918

2019
import io.github.samarium150.minecraft.mod.structures_compass.client.item.StructuresCompassItemPredicate
2120
import io.github.samarium150.minecraft.mod.structures_compass.init.ItemRegistry
22-
import net.fabricmc.fabric.api.`object`.builder.v1.client.model.FabricModelPredicateProviderRegistry
21+
import net.minecraft.client.item.ModelPredicateProviderRegistry
2322
import net.minecraft.util.Identifier
2423

2524
object ItemPredicateRegistry {
2625
fun init() {
27-
FabricModelPredicateProviderRegistry.register(
26+
ModelPredicateProviderRegistry.register(
2827
ItemRegistry.STRUCTURES_COMPASS,
2928
Identifier("angle"),
3029
StructuresCompassItemPredicate

0 commit comments

Comments
 (0)