Avoid hard crash if AT fails to apply

This commit is contained in:
embeddedt 2023-05-06 11:17:46 -04:00
parent cf1f60aa2b
commit 74c2c28a66
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -31,7 +31,12 @@ public class ModernFix {
static {
if(ModernFixMixinPlugin.instance.isOptionEnabled("perf.dedicated_reload_executor.ReloadExecutor")) {
resourceReloadService = Util.makeExecutor("ResourceReload");
try {
resourceReloadService = Util.makeExecutor("ResourceReload");
} catch(Throwable e) {
LOGGER.error("Error creating resource reload service, using fallback", e);
resourceReloadService = Util.backgroundExecutor();
}
} else {
resourceReloadService = Util.backgroundExecutor();
}