Fix missing model flag not being cleared at times

This commit is contained in:
embeddedt 2023-05-12 10:52:18 -04:00
parent ec10f36839
commit a1f50a0c4f
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -88,7 +88,8 @@ public abstract class ModelBakerImplMixin {
if(arg != ModelBakery.MISSING_MODEL_LOCATION && debugDynamicModelLoading)
ModernFix.LOGGER.warn("Model {} not present", arg);
wasMissingModel = true;
}
} else
wasMissingModel = false; /* sometimes this runs more than once e.g. for recursive model baking */
cir.getReturnValue().resolveParents(this.field_40571::getModel);
}