From 0b3d77a41bf90fc69a8bb7088a11041ea9aa5524 Mon Sep 17 00:00:00 2001 From: Taoshi Date: Tue, 19 Dec 2023 13:47:54 +0100 Subject: Add Platinum and Diamond brackets to the inJacobsContest check (#972) Update FarmingSkillOverlay.java --- .../github/moulberry/notenoughupdates/overlays/FarmingSkillOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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(",", "")); -- cgit