mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
18 lines
775 B
Diff
18 lines
775 B
Diff
--- a/net/minecraft/client/gui/screens/OptionsScreen.java
|
|
+++ b/net/minecraft/client/gui/screens/OptionsScreen.java
|
|
@@ -150,6 +_,14 @@
|
|
p_283520_.m_280653_(this.f_96547_, this.f_96539_, this.f_96543_ / 2, 15, 16777215);
|
|
}
|
|
|
|
+ @Override
|
|
+ public void m_7379_() {
|
|
+ // We need to consider 2 potential parent screens here:
|
|
+ // 1. From the main menu, in which case display the main menu
|
|
+ // 2. From the pause menu, in which case exit back to game
|
|
+ this.f_96541_.m_91152_(this.f_96235_ instanceof PauseScreen ? null : this.f_96235_);
|
|
+ }
|
|
+
|
|
private Button m_260993_(Component p_261565_, Supplier<Screen> p_262119_) {
|
|
return Button.m_253074_(p_261565_, (p_280808_) -> {
|
|
this.f_96541_.m_91152_(p_262119_.get());
|