diff options
author | HiZe_ <superhize@hotmail.com> | 2023-06-27 21:22:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 21:22:33 +0200 |
commit | 8b4cf7d640d2941026625b54f849a143dff871e9 (patch) | |
tree | ac7647976834eb539d2215b64a80faa260c42abc /src | |
parent | 8eab7d2432eb35acae7dc14c22428c9192f3fd61 (diff) | |
download | skyhanni-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')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt | 2 |
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()) { |