DataFixer Screen did no show up when experimental warning was disabled

This commit is contained in:
Frank 2022-01-21 10:05:33 +01:00
parent fe5dd3e32e
commit 7ab5377a03

View file

@ -68,17 +68,18 @@ public abstract class MinecraftMixin {
LifeCycleAPI._runBeforeLevelLoad();
this.doLoadLevel(levelID, RegistryAccess.builtin(), Minecraft::loadDataPacks, Minecraft::loadWorldData, false, appliedFixes ? ExperimentalDialogType.NONE : ExperimentalDialogType.BACKUP);
})) {
//cancle call when fix-screen is presented
ci.cancel();
}
else {
LifeCycleAPI._runBeforeLevelLoad();
}
if (Configs.CLIENT_CONFIG.suppressExperimentalDialog()) {
this.doLoadLevel(levelID, RegistryAccess.builtin(), Minecraft::loadDataPacks, Minecraft::loadWorldData, false, ExperimentalDialogType.NONE);
//cancle call as we manually start the level load here
ci.cancel();
}
}
}
@Inject(method = "createLevel", at = @At("HEAD"))
private void bclib_initPatchData(String levelID, LevelSettings levelSettings, RegistryHolder registryHolder, WorldGenSettings worldGenSettings, CallbackInfo ci) {