aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric')
-rw-r--r--src/main/kotlin/com/dulkirfabric/util/TablistUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/TablistUtils.kt b/src/main/kotlin/com/dulkirfabric/util/TablistUtils.kt
index 38c62a7..b731340 100644
--- a/src/main/kotlin/com/dulkirfabric/util/TablistUtils.kt
+++ b/src/main/kotlin/com/dulkirfabric/util/TablistUtils.kt
@@ -51,7 +51,7 @@ object TablistUtils {
persistentInfo.nextVisitorTime = result.groupValues[1]
var index = tablist!!.indexOf(it) + 1
var visitors = 0
- while (tablist!!.get(index).displayName?.string != "") {
+ while (index < tablist!!.size && tablist!![index].displayName?.string != "" && visitors < 5) {
index++
visitors++
}