Disable ModelDataManager fixes if Rubidium is installed
Since legacy Rubidium versions only retrieve model data on a worker thread, the data will probably never be refreshed, causing rendering issues.
This commit is contained in:
parent
12b0d352cd
commit
152cdc4469
|
|
@ -231,6 +231,7 @@ public class ModernFixEarlyConfig {
|
|||
}
|
||||
|
||||
checkBlockstateCacheRebuilds();
|
||||
checkModelDataManager();
|
||||
}
|
||||
|
||||
private void checkBlockstateCacheRebuilds() {
|
||||
|
|
@ -246,6 +247,16 @@ public class ModernFixEarlyConfig {
|
|||
}
|
||||
}
|
||||
|
||||
private void checkModelDataManager() {
|
||||
if(!isFabric && modPresent("rubidium") && !modPresent("embeddium")) {
|
||||
Option option = this.options.get("mixin.bugfix.model_data_manager_cme");
|
||||
if(option != null) {
|
||||
LOGGER.warn("ModelDataManager bugfixes have been disabled to prevent broken rendering with Rubidium installed. Please migrate to Embeddium.");
|
||||
option.addModOverride(false, "rubidium");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void disableIfModPresent(String configName, String... ids) {
|
||||
for(String id : ids) {
|
||||
if(!ModernFixPlatformHooks.INSTANCE.isEarlyLoadingNormally() || modPresent(id)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user