diff --git a/src/main/java/me/partlysanestudios/partlysaneskies/garden/VisitorLogbookStats.kt b/src/main/java/me/partlysanestudios/partlysaneskies/garden/VisitorLogbookStats.kt index 4c8f7a41f..8284c71b8 100644 --- a/src/main/java/me/partlysanestudios/partlysaneskies/garden/VisitorLogbookStats.kt +++ b/src/main/java/me/partlysanestudios/partlysaneskies/garden/VisitorLogbookStats.kt @@ -73,8 +73,8 @@ class VisitorLogbookStats { "SPECIAL" -> 4 else -> 5 } - val lineTimesVisited = noPlcwList.find{ it.contains("Times Visited: ") } ?: return - val lineOffersAccepted = noPlcwList.find{ it.contains("Offers Accepted: ") } ?: return + val lineTimesVisited = noPlcwList.find{ it.contains("Times Visited: ") } ?: break + val lineOffersAccepted = noPlcwList.find{ it.contains("Offers Accepted: ") } ?: break seenStats[rarityIndex] += lineTimesVisited.split(" ").last().replace(",", "").replace(".", "").toInt() acceptedStats[rarityIndex] += lineOffersAccepted.split(" ").last().replace(",", "").replace(".", "").toInt() seenStats[0] += lineTimesVisited.split(" ").last().replace(",", "").replace(".", "").toInt()