From d65fced7de935e4aff5747e39f9733a19c8ecb4c Mon Sep 17 00:00:00 2001 From: BlayTheNinth <1933180+BlayTheNinth@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:52:01 +0100 Subject: [PATCH] fix: Fix loadModel not resolving properly on Fabric --- .../balm/fabric/client/rendering/FabricBalmModels.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fabric/src/main/java/net/blay09/mods/balm/fabric/client/rendering/FabricBalmModels.java b/fabric/src/main/java/net/blay09/mods/balm/fabric/client/rendering/FabricBalmModels.java index 5acaff02..173cd2ab 100644 --- a/fabric/src/main/java/net/blay09/mods/balm/fabric/client/rendering/FabricBalmModels.java +++ b/fabric/src/main/java/net/blay09/mods/balm/fabric/client/rendering/FabricBalmModels.java @@ -75,7 +75,12 @@ public void onBakeModels(ModelBakery modelBakery, BiFunction loadModel(final ResourceLocation identifier) { DeferredModel deferredModel = new DeferredModel(identifier) { @Override - public BakedModel resolve(ModelBakery bakery, BiFunction spriteBiFunction) { + public BakedModel resolve(ModelBakery modelBakery, BiFunction spriteBiFunction) { + return resolve(); + } + + @Override + public BakedModel resolve() { return modelBakery.getBakedTopLevelModels().get(identifier); }