Fix exception in model removal notification

This commit is contained in:
embeddedt 2023-04-27 13:38:20 -04:00
parent 6c7cd80bb3
commit 90585fbb4f
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -106,7 +106,7 @@ public abstract class ModelBakeryMixin implements IExtendedModelBakery {
if(k instanceof ResourceLocation) { if(k instanceof ResourceLocation) {
rl = (ResourceLocation)k; rl = (ResourceLocation)k;
} else { } else {
rl = ((Triple<ResourceLocation, Transformation, Boolean>)k).getLeft(); rl = ((ModelBakery.BakedCacheKey)k).id();
baked = true; baked = true;
} }
ModernFix.LOGGER.warn("Evicted {} model {}", baked ? "baked" : "unbaked", rl); ModernFix.LOGGER.warn("Evicted {} model {}", baked ? "baked" : "unbaked", rl);