From 59366daaa6ccdad237ab5f8949aef45a686e048f Mon Sep 17 00:00:00 2001 From: alexia Date: Tue, 16 Jan 2024 16:13:14 +0100 Subject: Fix daily city project reminder triggering for released projects (#928) Fixed Daily City Project Reminder still working on already released projects. #928 --- .../skyhanni/features/fame/CityProjectFeatures.kt | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src') 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 62aa76289..5bd8be726 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fame/CityProjectFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fame/CityProjectFeatures.kt @@ -21,8 +21,10 @@ import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators import at.hannibal2.skyhanni.utils.RenderUtils.highlight import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher +import at.hannibal2.skyhanni.utils.StringUtils.matches import at.hannibal2.skyhanni.utils.TimeUtils import at.hannibal2.skyhanni.utils.renderables.Renderable +import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern import net.minecraft.client.Minecraft import net.minecraft.client.gui.inventory.GuiChest import net.minecraft.client.gui.inventory.GuiEditSign @@ -35,8 +37,15 @@ class CityProjectFeatures { private var inInventory = false private var lastReminderSend = 0L - // TODO USE SH-REPO - private val contributeAgainPattern = "§7Contribute again: §e(?