aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorTaoshi <nicolaikh@live.dk>2023-12-19 13:47:54 +0100
committerGitHub <noreply@github.com>2023-12-19 13:47:54 +0100
commit0b3d77a41bf90fc69a8bb7088a11041ea9aa5524 (patch)
tree3b72574e06d40a73e46a7d2b22f24f74c1eba5b9 /src/main
parent57666e9c49734d89332e987259a5ff48bc29c66d (diff)
downloadNotEnoughUpdates-0b3d77a41bf90fc69a8bb7088a11041ea9aa5524.tar.gz
NotEnoughUpdates-0b3d77a41bf90fc69a8bb7088a11041ea9aa5524.tar.bz2
NotEnoughUpdates-0b3d77a41bf90fc69a8bb7088a11041ea9aa5524.zip
Add Platinum and Diamond brackets to the inJacobsContest check (#972)
Update FarmingSkillOverlay.java
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/FarmingSkillOverlay.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/FarmingSkillOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/FarmingSkillOverlay.java
index bdffd40d..3c8f377d 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/FarmingSkillOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/FarmingSkillOverlay.java
@@ -140,7 +140,7 @@ public class FarmingSkillOverlay extends TextOverlay {
int cropsFarmed = -1;
for (String line : SidebarUtil.readSidebarLines()) {
if (line.contains("Collected") || line.contains("BRONZE") || line.contains("SILVER") ||
- line.contains("GOLD")) {
+ line.contains("GOLD") || line.contains("PLATINUM") || line.contains("DIAMOND")) {
inJacobContest = true;
String l = line.replaceAll("[^A-Za-z0-9() ]", "");
cropsFarmed = Integer.parseInt(l.substring(l.lastIndexOf(" ") + 1).replace(",", ""));