diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt index 4e8976a28..dee222aa2 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt @@ -52,15 +52,15 @@ class CityProjectFeatures { private fun checkDailyReminder() { if (!config.dailyReminder) return - val profileSpecific = ProfileStorageData.profileSpecific ?: return + val playerSpecific = ProfileStorageData.playerSpecific ?: return if (LorenzUtils.inDungeons) return if (LorenzUtils.inKuudraFight) return if (FarmingContestAPI.inContest) return if (LorenzUtils.skyBlockArea == "Community Center") return - if (profileSpecific.nextCityProjectParticipationTime == 0L) return - if (System.currentTimeMillis() <= profileSpecific.nextCityProjectParticipationTime) return + if (playerSpecific.nextCityProjectParticipationTime == 0L) return + if (System.currentTimeMillis() <= playerSpecific.nextCityProjectParticipationTime) return if (lastReminderSend + 30_000 > System.currentTimeMillis()) return lastReminderSend = System.currentTimeMillis() @@ -114,7 +114,7 @@ class CityProjectFeatures { if (itemName != "§eContribute this component!") continue nextTime = System.currentTimeMillis() } - ProfileStorageData.profileSpecific?.nextCityProjectParticipationTime = nextTime + ProfileStorageData.playerSpecific?.nextCityProjectParticipationTime = nextTime } } |