aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/repo/SBItemStack.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-03-10 22:24:01 +0100
committerLinnea Gräf <nea@nea.moe>2025-03-10 22:24:26 +0100
commitbb627157c217d3ebd632e51447e60acce1a81f86 (patch)
tree46048e669a49e9921744e1f356b5e1e02a9870be /src/main/kotlin/repo/SBItemStack.kt
parent034fc701ef0feffe1141b479ef4163d070958a6e (diff)
downloadFirmament-bb627157c217d3ebd632e51447e60acce1a81f86.tar.gz
Firmament-bb627157c217d3ebd632e51447e60acce1a81f86.tar.bz2
Firmament-bb627157c217d3ebd632e51447e60acce1a81f86.zip
fix: Weird tools for BP 7; feat: Options for jade; fix: tools for glass blocks in jade
Diffstat (limited to 'src/main/kotlin/repo/SBItemStack.kt')
-rw-r--r--src/main/kotlin/repo/SBItemStack.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/repo/SBItemStack.kt b/src/main/kotlin/repo/SBItemStack.kt
index e04eec3..3690866 100644
--- a/src/main/kotlin/repo/SBItemStack.kt
+++ b/src/main/kotlin/repo/SBItemStack.kt
@@ -34,6 +34,7 @@ import moe.nea.firmament.util.modifyExtraAttributes
import moe.nea.firmament.util.petData
import moe.nea.firmament.util.prepend
import moe.nea.firmament.util.reconstitute
+import moe.nea.firmament.util.removeColorCodes
import moe.nea.firmament.util.skyBlockId
import moe.nea.firmament.util.skyblock.ItemType
import moe.nea.firmament.util.skyblock.Rarity
@@ -352,7 +353,7 @@ data class SBItemStack constructor(
val breakingPower: Int
get() =
- BREAKING_POWER_REGEX.useMatch(asImmutableItemStack().loreAccordingToNbt.firstOrNull()?.string) {
+ BREAKING_POWER_REGEX.useMatch(neuItem?.lore?.firstOrNull()?.removeColorCodes()) {
group("power").toInt()
} ?: 0