From 651663eb36235f92a2264d6e80a63c7bb6bc0a1f Mon Sep 17 00:00:00 2001 From: sciwhiz12 Date: Wed, 20 Dec 2023 23:25:45 +0800 Subject: [PATCH] Fix world deletion cancel not working (#408) When the deletion is canceled, the screen is still ConfirmScreen, so the `if` condition needs to also check for that alongside ProgressScreen (when deletion succeeds and there is at least one world left). Fixes #406 --- .../gui/screens/worldselection/WorldSelectionList.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java.patch b/patches/net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java.patch index 3910efe081..196df42e27 100644 --- a/patches/net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java.patch +++ b/patches/net/minecraft/client/gui/screens/worldselection/WorldSelectionList.java.patch @@ -22,7 +22,7 @@ } - + -+ if (this.minecraft.screen instanceof ProgressScreen) // Neo - fix MC-251068 ++ if (this.minecraft.screen instanceof ProgressScreen || this.minecraft.screen instanceof ConfirmScreen) // Neo - fix MC-251068 this.minecraft.setScreen(this.screen); }, Component.translatable("selectWorld.deleteQuestion"),