mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
Co-authored-by: David Quintana <[email protected]> Co-authored-by: SizableShrimp <[email protected]>
16 lines
647 B
Diff
16 lines
647 B
Diff
--- a/net/minecraft/client/gui/screens/OptionsScreen.java
|
|
+++ b/net/minecraft/client/gui/screens/OptionsScreen.java
|
|
@@ -141,4 +_,12 @@
|
|
m_93215_(p_96249_, this.f_96547_, this.f_96539_, this.f_96543_ / 2, 15, 16777215);
|
|
super.m_6305_(p_96249_, p_96250_, p_96251_, p_96252_);
|
|
}
|
|
+
|
|
+ @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_);
|
|
+ }
|
|
}
|