Skip to content

Commit

Permalink
migrate ProfileStorageData
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Jan 1, 2024
1 parent 55d5b69 commit 128480b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import at.hannibal2.skyhanni.events.ProfileJoinEvent
import at.hannibal2.skyhanni.events.TabListUpdateEvent
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import net.minecraftforge.fml.common.eventhandler.EventPriority
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent

Expand All @@ -24,8 +25,10 @@ object ProfileStorageData {

private var nextProfile: String? = null

// TODO USE SH-REPO
private val profileSwitchPattern = "§7Switching to profile (?<name>.*)\\.\\.\\.".toPattern()
private val profileSwitchPattern by RepoPattern.pattern(
"data.profile.switch",
"§7Switching to profile (?<name>.*)\\.\\.\\."
)

private var sackPlayers: SackData.PlayerSpecific? = null
var sackProfiles: SackData.ProfileSpecific? = null
Expand Down

0 comments on commit 128480b

Please sign in to comment.