From fe5d224ed60ae5717e88f5333d02b7699ea62f61 Mon Sep 17 00:00:00 2001 From: Isaiah <73615108+lightningik@users.noreply.github.com> Date: Mon, 2 Oct 2023 07:50:15 -0700 Subject: Make Update Notification timeout after 10 seconds. (#846) Co-authored-by: LightningYTlol --- .../moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java | 2 +- src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java index f41654e7..ac77d276 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java @@ -159,7 +159,7 @@ public class AutoUpdater { "", "§eThere is a new version of NotEnoughUpdates available.", "§eCheck the chat for more information" - ), true); + ), false); try { if (directDownload != null) updateFromURL(new URL(directDownload)); 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 93d7687b..47549fec 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java @@ -2240,6 +2240,8 @@ public class Utils { 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.", @@ -2248,7 +2250,7 @@ public class Utils { EnumChatFormatting.RESET + EnumChatFormatting.RED + " and message in " + EnumChatFormatting.BOLD + "#neu-support" + EnumChatFormatting.RESET + EnumChatFormatting.RED + " to get support" ), - true, true + false, true ); } } -- cgit