Skip to content

Commit

Permalink
fix: Fix loadModel not resolving properly on Fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Feb 24, 2024
1 parent d764fbd commit d65fced
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ public void onBakeModels(ModelBakery modelBakery, BiFunction<ResourceLocation, M
public DeferredObject<BakedModel> loadModel(final ResourceLocation identifier) {
DeferredModel deferredModel = new DeferredModel(identifier) {
@Override
public BakedModel resolve(ModelBakery bakery, BiFunction<ResourceLocation, Material, TextureAtlasSprite> spriteBiFunction) {
public BakedModel resolve(ModelBakery modelBakery, BiFunction<ResourceLocation, Material, TextureAtlasSprite> spriteBiFunction) {
return resolve();
}

@Override
public BakedModel resolve() {
return modelBakery.getBakedTopLevelModels().get(identifier);
}

Expand Down

0 comments on commit d65fced

Please sign in to comment.