diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardTips.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardTips.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardTips.kt index 22925b405..4b5bca2e5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardTips.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardTips.kt @@ -27,7 +27,8 @@ class BingoCardTips { val toolTip = event.toolTip val communityGoal = toolTip.getOrNull(1) == "§5§o§8Community Goal" val bingoTip: BingoTip = if (communityGoal) { - BingoAPI.tips.filter { itemName.startsWith(it.key) }.values.firstOrNull() ?: return + // We added the suffix (Community Goal) so that older skyhanni versions don't crash with the new repo data. + BingoAPI.tips.filter { itemName.startsWith(it.key.split(" (Community Goal)")[0]) }.values.firstOrNull() ?: return } else { BingoAPI.tips[itemName] ?: return } |