diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/contest/FarmingContestAPI.kt | 4 |
1 files changed, 2 insertions, 2 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 8d7e1eae1..75b775174 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 @@ -61,8 +61,8 @@ object FarmingContestAPI { } inContest = currentContest } else { - if (currentCrop != contestCrop) { - FarmingContestEvent(currentCrop!!, FarmingContestPhase.CHANGE).postAndCatch() + if (currentCrop != contestCrop && currentCrop != null) { + FarmingContestEvent(currentCrop, FarmingContestPhase.CHANGE).postAndCatch() startTime = SimpleTimeMark.now() } } |