aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-01 15:24:43 +0200
committerGitHub <noreply@github.com>2024-04-01 15:24:43 +0200
commit5b994d3f03479c19a5836973ec712442fa4add90 (patch)
treec57f01226ca400dce5c1ba899d353cf579d2ba59 /src/main/java
parent83deeb976adb3dbd5aff892368095d27a8dfc29d (diff)
downloadNotEnoughUpdates-5b994d3f03479c19a5836973ec712442fa4add90.tar.gz
NotEnoughUpdates-5b994d3f03479c19a5836973ec712442fa4add90.tar.bz2
NotEnoughUpdates-5b994d3f03479c19a5836973ec712442fa4add90.zip
Add warning when using incorrect NEU api proxy (#1070)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
index 8b5badca..ba42834c 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -460,7 +460,17 @@ public class GuiProfileViewer extends GuiScreen {
long timeDiff = System.currentTimeMillis() - startTime;
val authState = NotEnoughUpdates.INSTANCE.manager.ursaClient.getAuthenticationState();
- if (authState == UrsaClient.AuthenticationState.FAILED_TO_JOINSERVER) {
+ if (NotEnoughUpdates.INSTANCE.manager.ursaClient.hasNonStandardUrsa()) {
+ Utils.drawStringCentered(
+ EnumChatFormatting.RED +
+ "Looks like you are using a non standard NEU server.",
+ guiLeft + sizeX / 2f, guiTop + 111, true, 0
+ );
+ Utils.drawStringCentered(
+ "§cPlease change your ursa server to the default (empty value) in §a/neu ursa§c.",
+ guiLeft + sizeX / 2f, guiTop + 121, true, 0
+ );
+ } else if (authState == UrsaClient.AuthenticationState.FAILED_TO_JOINSERVER) {
Utils.drawStringCentered(
EnumChatFormatting.RED +
"Looks like we cannot authenticate with Mojang.",