From 1d67ee3683080cdf0807350288fdb0670027e321 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 1 Dec 2023 12:48:37 +0100 Subject: Added support for the community goal suffix --- src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardTips.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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 } -- cgit