Skip to content

Commit

Permalink
migrate CropAccessoryData
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Jan 1, 2024
1 parent ce960c8 commit 730835e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/at/hannibal2/skyhanni/data/CropAccessoryData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.NEUItems
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import com.google.gson.JsonElement
import net.minecraft.item.ItemStack
import net.minecraft.nbt.CompressedStreamTools
Expand All @@ -20,8 +21,11 @@ import java.io.ByteArrayInputStream
import java.util.Base64

class CropAccessoryData {
// TODO USE SH-REPO
private val accessoryBagNamePattern = "Accessory Bag \\((?<current>\\d)/(?<total>\\d)\\)".toPattern()
private val accessoryBagNamePattern by RepoPattern.pattern(
"data.accessory.bagname",
"Accessory Bag \\((?<current>\\d)/(?<total>\\d)\\)"
)

private var loadedAccessoryThisProfile = false
private var ticks = 0
private var accessoryInBag: CropAccessory? = null
Expand Down

0 comments on commit 730835e

Please sign in to comment.