Disable async JEI by default when Modern UI is installed

This commit is contained in:
embeddedt 2023-01-14 19:51:25 -05:00
parent 41ed759938
commit b0a2da715e
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -35,8 +35,15 @@ public class ModernFixEarlyConfig {
this.addMixinRule("safety", true);
/* Mod compat */
if(FMLLoader.getLoadingModList().getModFileById("smoothboot") != null) {
this.options.get("mixin.perf.thread_priorities").addModOverride(false, "smoothboot");
disableIfModPresent("mixin.perf.thread_priorities", "smoothboot");
disableIfModPresent("mixin.perf.async_jei", "modernui");
}
private void disableIfModPresent(String configName, String... ids) {
for(String id : ids) {
if(FMLLoader.getLoadingModList().getModFileById(id) != null) {
this.options.get(configName).addModOverride(false, id);
}
}
}