summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorLuna <luna@alexia.lol>2024-07-15 20:16:36 +0200
committerGitHub <noreply@github.com>2024-07-15 20:16:36 +0200
commitf9e0fbd23a8243b931a43f48818e8d76f8e0cbd7 (patch)
tree08d9044a4d6bfd05909d1f53c6977e7a850e2079 /src/main/java/at/hannibal2/skyhanni/data
parent3875fd1658028708e6b990c45599142df8ec7d38 (diff)
downloadskyhanni-f9e0fbd23a8243b931a43f48818e8d76f8e0cbd7.tar.gz
skyhanni-f9e0fbd23a8243b931a43f48818e8d76f8e0cbd7.tar.bz2
skyhanni-f9e0fbd23a8243b931a43f48818e8d76f8e0cbd7.zip
Backend: Remove redundant property from HotmAPI.Powder (#2128)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HotmData.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
index f3a2189b0..2d8ea9457 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
@@ -651,13 +651,13 @@ enum class HotmData(
if (!LorenzUtils.inSkyBlock) return
event.scoreboard.matchFirst(ScoreboardPattern.powderPattern) {
- val type = HotmAPI.Powder.entries.firstOrNull { it.lowName == group("type") } ?: return
+ val type = HotmAPI.Powder.entries.firstOrNull { it.displayName == group("type") } ?: return
val amount = group("amount").formatLong()
val difference = amount - type.getCurrent()
if (difference > 0) {
type.gain(difference)
- ChatUtils.debug("Gained §a${difference.addSeparators()} §e${type.lowName} Powder")
+ ChatUtils.debug("Gained §a${difference.addSeparators()} §e${type.displayName} Powder")
}
}
}
@@ -745,7 +745,7 @@ enum class HotmData(
event.addIrrelevant {
add("Tokens : $availableTokens/$tokens")
HotmAPI.Powder.entries.forEach {
- add("${it.lowName} Powder: ${it.getCurrent()}/${it.getTotal()}")
+ add("${it.displayName} Powder: ${it.getCurrent()}/${it.getTotal()}")
}
add("Ability: ${HotmAPI.activeMiningAbility?.printName}")
add("Blue Egg: ${HotmAPI.isBlueEggActive}")