Skip to content

Commit aa53a76

Browse files
committed
Only wrap top-level CTM models if dynamic resources is on
1 parent 5fa94bf commit aa53a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forge/src/main/java/org/embeddedt/modernfix/forge/mixin/perf/dynamic_resources/ctm/TextureMetadataHandlerMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private void noIteration(CallbackInfo ci) {
4242

4343
@Override
4444
public BakedModel onBakedModelLoad(ResourceLocation rl, UnbakedModel rootModel, BakedModel baked, ModelState state, ModelBakery bakery) {
45-
if (!(baked instanceof AbstractCTMBakedModel) && !baked.isCustomRenderer()) {
45+
if (rl instanceof ModelResourceLocation && !(baked instanceof AbstractCTMBakedModel) && !baked.isCustomRenderer()) {
4646
Deque<ResourceLocation> dependencies = new ArrayDeque<>();
4747
Set<ResourceLocation> seenModels = new HashSet<>();
4848
dependencies.push(rl);

0 commit comments

Comments
 (0)