aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorHiZe_ <superhize@hotmail.com>2023-06-27 21:22:33 +0200
committerGitHub <noreply@github.com>2023-06-27 21:22:33 +0200
commit8b4cf7d640d2941026625b54f849a143dff871e9 (patch)
treeac7647976834eb539d2215b64a80faa260c42abc /src/main/java/at/hannibal2
parent8eab7d2432eb35acae7dc14c22428c9192f3fd61 (diff)
downloadskyhanni-8b4cf7d640d2941026625b54f849a143dff871e9.tar.gz
skyhanni-8b4cf7d640d2941026625b54f849a143dff871e9.tar.bz2
skyhanni-8b4cf7d640d2941026625b54f849a143dff871e9.zip
Merge pull request #261
* Fixed an error when players had no ghost kill
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt
index 0be9f0655..58f190434 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt
@@ -357,7 +357,7 @@ object GhostCounter {
if (inventoryName != "Bestiary ➜ Deep Caverns") return
val stacks = event.inventoryItems
val ghostStack = stacks[13] ?: return
- val bestiaryNextLevel = Utils.parseIntOrRomanNumeral(ghostStack.displayName.substring(8)) + 1
+ val bestiaryNextLevel = if (ghostStack.displayName == "§cGhost") 1 else Utils.parseIntOrRomanNumeral(ghostStack.displayName.substring(8)) + 1
hidden?.bestiaryNextLevel = bestiaryNextLevel.toDouble()
for (line in ghostStack.getLore()) {