Catch errors from dynamic resources integrations instead of propagating them

This commit is contained in:
embeddedt 2025-05-02 19:54:58 -04:00
parent 2dae858652
commit 508e62b160
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -149,7 +149,11 @@ public abstract class ModelBakeryMixin implements IExtendedModelBakery {
model = bakedMissingModel;
}
for(ModernFixClientIntegration integration : ModernFixClient.CLIENT_INTEGRATIONS) {
model = integration.onBakedModelLoad(location, prototype, model, BlockModelRotation.X0_Y0, (ModelBakery)(Object)this, this.textureGetter);
try {
model = integration.onBakedModelLoad(location, prototype, model, BlockModelRotation.X0_Y0, (ModelBakery)(Object)this, this.textureGetter);
} catch (RuntimeException e) {
ModernFix.LOGGER.error("Exception encountered running dynamic resources integration", e);
}
}
}
}