aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-08 19:01:40 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-08 19:01:40 +0100
commit63040e717d9ab98aefd6eca379501ce89e03656d (patch)
tree8a0afbada942996ceb2d59182a1e35ebfda9a91f /src/main/java/at
parenta28e7e388bea2f1e4796595f91ba802accf17485 (diff)
downloadskyhanni-63040e717d9ab98aefd6eca379501ce89e03656d.tar.gz
skyhanni-63040e717d9ab98aefd6eca379501ce89e03656d.tar.bz2
skyhanni-63040e717d9ab98aefd6eca379501ce89e03656d.zip
code cleanup
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt
index 151cb145e..f45942b49 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt
@@ -36,13 +36,13 @@ class BingoCardReader {
BingoAPI.bingoGoals.clear()
for ((slot, stack) in event.inventoryItems) {
+ val lore = stack.getLore()
val goalType = when {
- stack.getLore().any { it.endsWith("Personal Goal") } -> GoalType.PERSONAL
- stack.getLore().any { it.endsWith("Community Goal") } -> GoalType.COMMUNITY
+ lore.any { it.endsWith("Personal Goal") } -> GoalType.PERSONAL
+ lore.any { it.endsWith("Community Goal") } -> GoalType.COMMUNITY
else -> continue
}
val name = stack.name?.removeColor() ?: continue
- val lore = stack.getLore()
var index = 0
val builder = StringBuilder()
for (s in lore) {
@@ -61,7 +61,7 @@ class BingoCardReader {
description = description.substring(2)
}
- val done = stack.getLore().any { it.contains("GOAL REACHED") }
+ val done = lore.any { it.contains("GOAL REACHED") }
val hiddenGoalData = getHiddenGoalData(name, description, goalType)
val visualDescription = hiddenGoalData.tipNote