Prepared BCLib Version warning screen
This commit is contained in:
parent
46a5603ff7
commit
4fc9c06204
7 changed files with 171 additions and 58 deletions
|
@ -227,9 +227,6 @@ public class DataFixerAPI {
|
|||
|
||||
@Environment(EnvType.CLIENT)
|
||||
static void showBackupWarning(String levelID, Consumer<Boolean> whenFinished){
|
||||
TranslatableComponent promptText = new TranslatableComponent("bclib.datafixer.backupWarning.prompt");
|
||||
TranslatableComponent buttonTitle = new TranslatableComponent("bclib.datafixer.backupWarning.button");
|
||||
|
||||
Minecraft.getInstance().setScreen(new ConfirmFixScreen((Screen) null, (createBackup, applyFixes) -> {
|
||||
if (createBackup) {
|
||||
EditWorldScreen.makeBackupAndShowToast(Minecraft.getInstance().getLevelSource(), levelID);
|
||||
|
@ -238,7 +235,6 @@ public class DataFixerAPI {
|
|||
Minecraft.getInstance().setScreen((Screen)null);
|
||||
whenFinished.accept(applyFixes);
|
||||
}));
|
||||
|
||||
}
|
||||
|
||||
private static void runDataFixes(File dir, MigrationProfile profile, ProgressListener progress) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue