From 508e62b1603f6375504d8f8cf1d99f99437f75ae Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Fri, 2 May 2025 19:54:58 -0400 Subject: [PATCH] Catch errors from dynamic resources integrations instead of propagating them --- .../mixin/perf/dynamic_resources/ModelBakeryMixin.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/dynamic_resources/ModelBakeryMixin.java b/common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/dynamic_resources/ModelBakeryMixin.java index 87bdc708..26c554c3 100644 --- a/common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/dynamic_resources/ModelBakeryMixin.java +++ b/common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/dynamic_resources/ModelBakeryMixin.java @@ -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); + } } } }