diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-09 11:42:37 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-09 11:42:37 +0100 |
commit | 19c5cd978a55ecb7bc5f09230e57bbd82162b2fd (patch) | |
tree | 1087935951f9f1e103991999a09af8fc7b38ecbe /src | |
parent | e4049995b1de4b8f560a8c856744166bdf7bda0a (diff) | |
download | skyhanni-19c5cd978a55ecb7bc5f09230e57bbd82162b2fd.tar.gz skyhanni-19c5cd978a55ecb7bc5f09230e57bbd82162b2fd.tar.bz2 skyhanni-19c5cd978a55ecb7bc5f09230e57bbd82162b2fd.zip |
Fixed city project time remaining "soon!" error.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fame/CityProjectFeatures.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fame/CityProjectFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/fame/CityProjectFeatures.kt index d47e32981..ace382885 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fame/CityProjectFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fame/CityProjectFeatures.kt @@ -106,7 +106,9 @@ class CityProjectFeatures { for (line in item.getLore()) { contributeAgainPattern.matchMatcher(line) { - val duration = TimeUtils.getMillis(group("time")) + val rawTime = group("time") + if (rawTime.contains("Soon!")) return@matchMatcher + val duration = TimeUtils.getMillis(rawTime) val endTime = System.currentTimeMillis() + duration if (endTime < nextTime) { nextTime = endTime |