aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/GuiGamemodes.java
diff options
context:
space:
mode:
authorBuildTools <james.jenour@protonmail.com>2021-02-26 00:27:56 +0800
committerBuildTools <james.jenour@protonmail.com>2021-02-26 00:27:56 +0800
commit9fa454949a58eb70c328ff75a37c3eb3755df6f4 (patch)
tree6e5255ba865ca22b1c905f2f50930208e7076c5f /src/main/java/io/github/moulberry/notenoughupdates/gamemodes/GuiGamemodes.java
parent24aeb45f6e40ac0119b44735e816c64f25ac0ecc (diff)
downloadnotenoughupdates-9fa454949a58eb70c328ff75a37c3eb3755df6f4.tar.gz
notenoughupdates-9fa454949a58eb70c328ff75a37c3eb3755df6f4.tar.bz2
notenoughupdates-9fa454949a58eb70c328ff75a37c3eb3755df6f4.zip
gravtay
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/gamemodes/GuiGamemodes.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/gamemodes/GuiGamemodes.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/GuiGamemodes.java b/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/GuiGamemodes.java
index ff010fc7..b57c92a3 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/GuiGamemodes.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/GuiGamemodes.java
@@ -43,6 +43,12 @@ public class GuiGamemodes extends GuiScreen {
@Override
public void updateScreen() {
+ if(this.currentProfile == null) {
+ Minecraft.getMinecraft().displayGuiScreen(null);
+ Minecraft.getMinecraft().thePlayer.addChatMessage(
+ new ChatComponentText(EnumChatFormatting.RED+"Couldn't detect current profile. Maybe try later?"));
+ }
+
if(currentGamemode == null) {
currentGamemode = SBGamemodes.getGamemode();
if(currentGamemode == null) {