diff --git a/src/main/java/kasuga/lib/core/client/model/anim_instance/AnimateTicker.java b/src/main/java/kasuga/lib/core/client/model/anim_instance/AnimateTicker.java index 27b5f493..3877f47a 100644 --- a/src/main/java/kasuga/lib/core/client/model/anim_instance/AnimateTicker.java +++ b/src/main/java/kasuga/lib/core/client/model/anim_instance/AnimateTicker.java @@ -149,6 +149,7 @@ public static LazyRecomputable getTickerInstance( return new LazyRecomputable<>(() -> { AnimModel model = AnimModelLoader.INSTANCE.getModel(modelLoc); if (model == null) return null; + model.init(); AnimationFile file = AnimationFile.fromFile(animFile).get(); if (file == null) return null; Animation anim = file.getAnimation(animName); diff --git a/src/main/java/kasuga/lib/core/client/model/anim_instance/MultiAnimateTicker.java b/src/main/java/kasuga/lib/core/client/model/anim_instance/MultiAnimateTicker.java index 44768ddb..686ece6b 100644 --- a/src/main/java/kasuga/lib/core/client/model/anim_instance/MultiAnimateTicker.java +++ b/src/main/java/kasuga/lib/core/client/model/anim_instance/MultiAnimateTicker.java @@ -157,6 +157,7 @@ public static LazyRecomputable getTickerInstance( int counter = 0; AnimModel model = AnimModelLoader.INSTANCE.getModel(modelLoc); if (model == null) return null; + model.init(); for (Pair a : anims) { AnimationFile file = AnimationFile.fromFile(a.getFirst()).get(); if (file == null) return null; diff --git a/src/main/java/kasuga/lib/example_env/client/block_entity/renderer/GreenAppleTileRenderer.java b/src/main/java/kasuga/lib/example_env/client/block_entity/renderer/GreenAppleTileRenderer.java index aac7cda9..373abeaa 100644 --- a/src/main/java/kasuga/lib/example_env/client/block_entity/renderer/GreenAppleTileRenderer.java +++ b/src/main/java/kasuga/lib/example_env/client/block_entity/renderer/GreenAppleTileRenderer.java @@ -20,7 +20,7 @@ public class GreenAppleTileRenderer implements BlockEntityRenderer ticker = AnimateTicker.getTickerInstance( - AllExampleElements.REGISTRY.asResource("block/test/test_model_complicate"), + AllExampleElements.REGISTRY.asResource("test_model_complicate"), AllExampleElements.REGISTRY.asResource("model"), "transform", AnimateTicker.TickerType.RENDER, 60, 100);