aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-21 21:07:17 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-21 21:07:17 +0100
commitd72056eebbf41378826131a9b1ee76159244646e (patch)
treee363092ad8a964cb48a58266485d84d6b928f2f7 /src/main/java/at/hannibal2/skyhanni
parent16b914abed6e58f2a89be04560f649b0353da318 (diff)
downloadskyhanni-d72056eebbf41378826131a9b1ee76159244646e.tar.gz
skyhanni-d72056eebbf41378826131a9b1ee76159244646e.tar.bz2
skyhanni-d72056eebbf41378826131a9b1ee76159244646e.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/contest/FarmingContestAPI.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/FarmingContestAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/FarmingContestAPI.kt
index 33335c4ab..d2d866f36 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/FarmingContestAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/FarmingContestAPI.kt
@@ -71,11 +71,9 @@ object FarmingContestAPI {
private fun readCurrentCrop(): CropType? {
val line = ScoreboardData.sidebarLinesFormatted.nextAfter("§eJacob's Contest") ?: return null
- sidebarCropPattern.matchMatcher(line) {
- return CropType.getByName(group("crop"))
+ return sidebarCropPattern.matchMatcher(line) {
+ CropType.getByName(group("crop"))
}
-
- return null
}
@SubscribeEvent