Skip to content

Commit

Permalink
Readd NeoForge support
Browse files Browse the repository at this point in the history
  • Loading branch information
Onako2 committed Oct 3, 2024
1 parent efeada4 commit 0b8633c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions src/client/java/rs/onako2/iwie/ClientInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 0b8633c

Please sign in to comment.