Skip to content

Commit

Permalink
Only wrap top-level CTM models if dynamic resources is on
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Dec 19, 2023
1 parent 5fa94bf commit aa53a76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private void noIteration(CallbackInfo ci) {

@Override
public BakedModel onBakedModelLoad(ResourceLocation rl, UnbakedModel rootModel, BakedModel baked, ModelState state, ModelBakery bakery) {
if (!(baked instanceof AbstractCTMBakedModel) && !baked.isCustomRenderer()) {
if (rl instanceof ModelResourceLocation && !(baked instanceof AbstractCTMBakedModel) && !baked.isCustomRenderer()) {
Deque<ResourceLocation> dependencies = new ArrayDeque<>();
Set<ResourceLocation> seenModels = new HashSet<>();
dependencies.push(rl);
Expand Down

0 comments on commit aa53a76

Please sign in to comment.