aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HotmData.kt10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
index f23795acd..841e39c17 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
@@ -382,8 +382,14 @@ enum class HotmData(
group("level").toInt().transformIf({ group("color") == "b" }, { this.minus(1) })
} ?: entry.maxLevel
- if (entry.activeLevel > entry.maxLevel) {
- throw IllegalStateException("Hotm Perk '${entry.name}' over max level")
+ // max level + 1 because Blue Cheese Goblin Omelette adds +1 to each level
+ if (entry.activeLevel > entry.maxLevel + 1) {
+ ErrorManager.skyHanniError(
+ "Hotm Perk '${entry.name}' over max level",
+ "name" to entry.name,
+ "activeLevel" to entry.activeLevel,
+ "maxLevel" to entry.maxLevel,
+ )
}
if (entry == PEAK_OF_THE_MOUNTAIN) {