diff --git a/gradle.properties b/gradle.properties index 8cf84fd..99272bf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ minecraft_version=1.21.1 yarn_mappings=1.21.1+build.3 loader_version=0.16.5 # Mod Properties -mod_version=2.2.1 +mod_version=2.2.2 maven_group=rs.onako2 archives_base_name=i-want-it-earlier # Dependencies diff --git a/src/client/java/rs/onako2/iwie/ClientInit.java b/src/client/java/rs/onako2/iwie/ClientInit.java index 0594701..e19b875 100644 --- a/src/client/java/rs/onako2/iwie/ClientInit.java +++ b/src/client/java/rs/onako2/iwie/ClientInit.java @@ -2,8 +2,8 @@ import net.fabricmc.api.ClientModInitializer; import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap; -import net.fabricmc.fabric.api.client.rendereregistry.v1.EntityRendererRegistry; import net.fabricmc.fabric.api.client.rendering.v1.EntityModelLayerRegistry; +import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry; import net.minecraft.client.MinecraftClient; import net.minecraft.client.color.block.BlockColors; import net.minecraft.client.render.RenderLayer; @@ -46,9 +46,7 @@ public void onInitializeClient() { client.getWindow().setTitle("https://modrinth.com/mod/i-want-it-earlier"); }); - EntityRendererRegistry.INSTANCE.register(Init.CREAKING, (context) -> { - return new CreakingEntityRenderer(context); - }); + EntityRendererRegistry.register(Init.CREAKING, CreakingEntityRenderer::new); EntityModelLayerRegistry.registerModelLayer(MODEL_CREAKING_LAYER, CreakingModel::getTexturedModelData);