diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistAPI.kt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistAPI.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistAPI.kt index 277ed6e3..0ab086b4 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistAPI.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistAPI.kt @@ -57,10 +57,16 @@ object TablistAPI { } if (list.isNotEmpty()) { - // New tab section, or empty line indicate a new section - if (entry == "§r §r§3§lInfo§r" || entry == "§r") { + // Empty line, the widget ends here. + if (entry == "§r") { break } + + // New tab column, ignore it and continue with the same widget + if (entry == "§r §r§3§lInfo§r") { + continue + } + list.add(entry) } else if (entry.stripControlCodes().matches(regex)) { list.add(entry) |