Disable async JEI by default when Modern UI is installed
This commit is contained in:
parent
41ed759938
commit
b0a2da715e
|
|
@ -35,8 +35,15 @@ public class ModernFixEarlyConfig {
|
||||||
this.addMixinRule("safety", true);
|
this.addMixinRule("safety", true);
|
||||||
|
|
||||||
/* Mod compat */
|
/* Mod compat */
|
||||||
if(FMLLoader.getLoadingModList().getModFileById("smoothboot") != null) {
|
disableIfModPresent("mixin.perf.thread_priorities", "smoothboot");
|
||||||
this.options.get("mixin.perf.thread_priorities").addModOverride(false, "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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user