Skip to content

Commit

Permalink
Fix world deletion cancel not working (#408)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sciwhiz12 authored Dec 20, 2023
1 parent 97f3373 commit 651663e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 651663e

Please sign in to comment.