Merge 1.19.4 into 1.20

This commit is contained in:
embeddedt 2023-07-20 10:43:40 -04:00
commit 5ed2faebc4
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -102,7 +102,7 @@ public abstract class ModelBakerImplMixin {
if(!wasMissingModel) {
for(ModernFixClientIntegration integration : ModernFixClient.CLIENT_INTEGRATIONS) {
try {
toReplace = integration.onUnbakedModelPreBake(arg, toReplace, (ModelBakery)(Object)this);
toReplace = integration.onUnbakedModelPreBake(arg, toReplace, this.field_40571);
} catch(RuntimeException e) {
ModernFix.LOGGER.error("Exception firing model pre-bake event for {}", arg, e);
}