diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-21 21:07:17 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-21 21:07:17 +0100 |
commit | d72056eebbf41378826131a9b1ee76159244646e (patch) | |
tree | e363092ad8a964cb48a58266485d84d6b928f2f7 /src/main/java/at/hannibal2 | |
parent | 16b914abed6e58f2a89be04560f649b0353da318 (diff) | |
download | skyhanni-d72056eebbf41378826131a9b1ee76159244646e.tar.gz skyhanni-d72056eebbf41378826131a9b1ee76159244646e.tar.bz2 skyhanni-d72056eebbf41378826131a9b1ee76159244646e.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/contest/FarmingContestAPI.kt | 6 |
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 |