From f0c86cc213c36e67c871c952971fe58d3e9c6497 Mon Sep 17 00:00:00 2001 From: Aaron <51387595+AzureAaron@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:01:35 -0500 Subject: Support notes that go onto the next line --- .../skyblock/dungeon/partyfinder/PartyEntry.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dungeon/partyfinder/PartyEntry.java b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/partyfinder/PartyEntry.java index e5033017..daf764ef 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dungeon/partyfinder/PartyEntry.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/partyfinder/PartyEntry.java @@ -110,7 +110,19 @@ public class PartyEntry extends ElementListWidget.Entry { lockReason = text; } else if (lowerCase.contains("note:")) { String[] split = tooltipText.split(":"); - note = split.length == 1 ? "" : split[1].trim(); + + //Note goes onto next line + if (split.length == 1) { + String next = tooltips.get(i + 1).getString(); + + if (!next.isBlank() && (!next.contains("Class Level") || !next.contains("Dungeon Level"))) { + note = next.trim(); + } else { + note = ""; + } + } else { + note = split[1].trim(); + } } } if (membersIndex != -1) { -- cgit