From 2fa607b3c62eeb93ff5a569db6938b4f5761bfbf Mon Sep 17 00:00:00 2001 From: BlayTheNinth <1933180+BlayTheNinth@users.noreply.github.com> Date: Fri, 14 Jun 2024 20:22:24 +0200 Subject: [PATCH] fix: Fix model variant for loadModel --- .../mods/balm/forge/client/rendering/ForgeBalmModels.java | 2 +- .../mods/balm/neoforge/client/rendering/NeoForgeBalmModels.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forge/src/main/java/net/blay09/mods/balm/forge/client/rendering/ForgeBalmModels.java b/forge/src/main/java/net/blay09/mods/balm/forge/client/rendering/ForgeBalmModels.java index daaf9c17..928e44d8 100644 --- a/forge/src/main/java/net/blay09/mods/balm/forge/client/rendering/ForgeBalmModels.java +++ b/forge/src/main/java/net/blay09/mods/balm/forge/client/rendering/ForgeBalmModels.java @@ -112,7 +112,7 @@ public void onBakeModels(ModelBakery modelBakery, ModelBakery.TextureGetter text @Override public DeferredObject loadModel(ResourceLocation identifier) { - DeferredModel deferredModel = new DeferredModel(new ModelResourceLocation(identifier, "balm_resource")) { + DeferredModel deferredModel = new DeferredModel(new ModelResourceLocation(identifier, "standalone")) { @Override public BakedModel resolve(ModelBakery bakery, Map modelRegistry, ModelBakery.TextureGetter textureGetter) { return modelRegistry.get(getModelResourceLocation()); diff --git a/neoforge/src/main/java/net/blay09/mods/balm/neoforge/client/rendering/NeoForgeBalmModels.java b/neoforge/src/main/java/net/blay09/mods/balm/neoforge/client/rendering/NeoForgeBalmModels.java index b96eced5..bfc8fed8 100644 --- a/neoforge/src/main/java/net/blay09/mods/balm/neoforge/client/rendering/NeoForgeBalmModels.java +++ b/neoforge/src/main/java/net/blay09/mods/balm/neoforge/client/rendering/NeoForgeBalmModels.java @@ -111,7 +111,7 @@ public void onBakeModels(ModelBakery modelBakery, ModelBakery.TextureGetter text @Override public DeferredObject loadModel(ResourceLocation identifier) { - DeferredModel deferredModel = new DeferredModel(new ModelResourceLocation(identifier, "balm_resource")) { + DeferredModel deferredModel = new DeferredModel(new ModelResourceLocation(identifier, "standalone")) { @Override public BakedModel resolve(ModelBakery bakery, Map modelRegistry, ModelBakery.TextureGetter textureGetter) { return modelRegistry.get(getModelResourceLocation());