aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-09 11:42:37 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-09 11:42:37 +0100
commit19c5cd978a55ecb7bc5f09230e57bbd82162b2fd (patch)
tree1087935951f9f1e103991999a09af8fc7b38ecbe /src/main/java/at
parente4049995b1de4b8f560a8c856744166bdf7bda0a (diff)
downloadskyhanni-19c5cd978a55ecb7bc5f09230e57bbd82162b2fd.tar.gz
skyhanni-19c5cd978a55ecb7bc5f09230e57bbd82162b2fd.tar.bz2
skyhanni-19c5cd978a55ecb7bc5f09230e57bbd82162b2fd.zip
Fixed city project time remaining "soon!" error.
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fame/CityProjectFeatures.kt4
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