Skip to content

Commit

Permalink
Fix build (I hope)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Mar 27, 2023
1 parent 219f4a1 commit b75430f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/minelittlepony/mson/impl/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.client.model.ModelPart;
import net.minecraft.client.network.AbstractClientPlayerEntity;
import net.minecraft.client.render.entity.EntityRendererFactory;
import net.minecraft.client.render.entity.PlayerEntityRenderer;
import net.minecraft.client.render.entity.model.PlayerEntityModel;
import net.minecraft.util.Identifier;

import com.google.gson.JsonParseException;
Expand Down Expand Up @@ -68,7 +70,7 @@ static void exportBbModels(Iterable<? extends AbstractModelKeyImpl<?>> keys) {
});
}

static Function<EntityRendererFactory.Context, PlayerEntityRenderer> playerRendererFactor(ModelKey<?> key) {
static Function<EntityRendererFactory.Context, PlayerEntityRenderer> playerRendererFactor(ModelKey<? extends PlayerEntityModel<AbstractClientPlayerEntity>> key) {
return r -> new PlayerEntityRenderer(r, false) {{
this.model = key.createModel();
}};
Expand Down

0 comments on commit b75430f

Please sign in to comment.