diff options
| author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-08-13 09:53:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-13 09:53:50 +0200 |
| commit | 0545d229754ae1b50916cad708be70d66cb5efe2 (patch) | |
| tree | 0788fd4397e29e50f3a1dbcc2b7151da5a3067b5 | |
| parent | 033f448a8f1faaee8da7c8b62219746e66efe9c1 (diff) | |
| download | notenoughupdates-0545d229754ae1b50916cad708be70d66cb5efe2.tar.gz notenoughupdates-0545d229754ae1b50916cad708be70d66cb5efe2.tar.bz2 notenoughupdates-0545d229754ae1b50916cad708be70d66cb5efe2.zip | |
meta: Made showOutdatedRepoNotification() readable (#1321)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java index 5a2018ed..36bafb6a 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java @@ -2286,18 +2286,11 @@ public class Utils { public static void showOutdatedRepoNotification(String missingFile, Throwable exception) { if (NotEnoughUpdates.INSTANCE.config.notifications.outdatedRepo) { NotificationHandler.displayNotification(Lists.newArrayList( - EnumChatFormatting.RED + EnumChatFormatting.BOLD.toString() + "Missing repo data", - EnumChatFormatting.RED + - "Data used for many NEU features is not up to date, this should normally not be the case.", - EnumChatFormatting.RED + - "Please make sure you are on the latest version of NEU.", - EnumChatFormatting.RED + "You can try " + EnumChatFormatting.BOLD + "/neuresetrepo" + EnumChatFormatting.RESET + - EnumChatFormatting.RED + " and restart your game" + - " to see if that fixes the issue.", - EnumChatFormatting.RED + "If the problem persists please join " + EnumChatFormatting.BOLD + - "discord.gg/moulberry" + - EnumChatFormatting.RESET + EnumChatFormatting.RED + " and message in " + EnumChatFormatting.BOLD + - "#neu-support" + EnumChatFormatting.RESET + EnumChatFormatting.RED + " to get support" + "§c§lMissing repo data", + "§cData used for many NEU features is not up to date, this should normally not be the case.", + "§cYou can try §l/neuresetrepo§r§c and restart your game to see if that fixes the issue.", + "§cIf the problem persists please join " + + "§ldiscord.gg/moulberry§r§c and message in §l#neu-support§r§c to get support" ), false, true ); |
