aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorLulonaut <67191924+Lulonaut@users.noreply.github.com>2022-03-06 08:41:22 +0100
committerGitHub <noreply@github.com>2022-03-06 08:41:22 +0100
commit8b630cb7c39e73346d43b1e083b62b30fc3cde8f (patch)
treeb1adb83a2fef17f692d71e52035c20980d9a5841 /src/main/java
parente6f12bd56b1129e64541f576150de6deb2fc8584 (diff)
downloadNotEnoughUpdates-8b630cb7c39e73346d43b1e083b62b30fc3cde8f.tar.gz
NotEnoughUpdates-8b630cb7c39e73346d43b1e083b62b30fc3cde8f.tar.bz2
NotEnoughUpdates-8b630cb7c39e73346d43b1e083b62b30fc3cde8f.zip
Add sbcheck to item price warning (#89)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java
index 1804831b..7dac5eb2 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java
@@ -86,7 +86,7 @@ public class ItemPriceInformation {
long currentTime = System.currentTimeMillis();
long lastUpdate = NotEnoughUpdates.INSTANCE.manager.auctionManager.getLastLowestBinUpdateTime();
//check if info is older than 10 minutes
- if (currentTime - lastUpdate > 600 * 1000) {
+ if (currentTime - lastUpdate > 600 * 1000 && NotEnoughUpdates.INSTANCE.hasSkyblockScoreboard()) {
tooltip.add(EnumChatFormatting.RED + "[NEU] Price info is outdated.");
tooltip.add(EnumChatFormatting.RED + "It will be updated again as soon as possible.");
}
@@ -336,7 +336,7 @@ public class ItemPriceInformation {
}
return added;
- } else if (auctionInfoErrored) {
+ } else if (auctionInfoErrored && NotEnoughUpdates.INSTANCE.hasSkyblockScoreboard()) {
String message = EnumChatFormatting.RED.toString() + EnumChatFormatting.BOLD + "[NEU] API is down";
if (auctionableItems != null && !auctionableItems.isEmpty()) {
if (auctionableItems.contains(internalname)) {