Avoid hard crash if AT fails to apply
This commit is contained in:
parent
cf1f60aa2b
commit
74c2c28a66
|
|
@ -31,7 +31,12 @@ public class ModernFix {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
if(ModernFixMixinPlugin.instance.isOptionEnabled("perf.dedicated_reload_executor.ReloadExecutor")) {
|
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 {
|
} else {
|
||||||
resourceReloadService = Util.backgroundExecutor();
|
resourceReloadService = Util.backgroundExecutor();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user