Skip to content

Commit

Permalink
migrate CityProjectFeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Jan 2, 2024
1 parent de8f77f commit fad7142
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
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
Expand All @@ -35,9 +36,10 @@ class CityProjectFeatures {
private var inInventory = false
private var lastReminderSend = 0L

// TODO USE SH-REPO
private val contributeAgainPattern = "§7Contribute again: §e(?<time>.*)".toPattern()

private val contributeAgainPattern by RepoPattern.pattern(
"fame.projects.contribute",
"§7Contribute again: §e(?<time>.*)"
)
companion object {
private val config get() = SkyHanniMod.feature.event.cityProject
fun disable() {
Expand Down

0 comments on commit fad7142

Please sign in to comment.