diff options
author | syeyoung <cyoung06@naver.com> | 2021-10-03 23:07:35 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2021-10-03 23:07:35 +0900 |
commit | dcd661c9108005b43f595d010c92d3221f866fb8 (patch) | |
tree | 5d8996c83bec3177f9be71bb292aff4139b1ea9e /src/main/java/kr | |
parent | b5380a324eaf3d82ca8aaecf1e6cb48ab53ad768 (diff) | |
download | Skyblock-Dungeons-Guide-dcd661c9108005b43f595d010c92d3221f866fb8.tar.gz Skyblock-Dungeons-Guide-dcd661c9108005b43f595d010c92d3221f866fb8.tar.bz2 Skyblock-Dungeons-Guide-dcd661c9108005b43f595d010c92d3221f866fb8.zip |
- FIX: Trivia throwing answers in middle of answers
Diffstat (limited to 'src/main/java/kr')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java index a6199c25..dcf4434a 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorTrivia.java @@ -49,11 +49,16 @@ public class RoomProcessorTrivia extends GeneralRoomProcessor { private final List<String> questionDialog = new ArrayList<String>(); private boolean questionDialogStart = false; + private boolean parseDialog = false; @Override public void chatReceived(IChatComponent chat) { super.chatReceived(chat); if (!FeatureRegistry.SOLVER_KAHOOT.isEnabled()) return; String ch2 = chat.getUnformattedText(); + if (parseDialog) { + parseDialog = false; + parseDialog(); + } if (chat.getFormattedText().contains("§r§6§lQuestion ")) { questionDialogStart = true; questionDialog.clear(); @@ -64,7 +69,7 @@ public class RoomProcessorTrivia extends GeneralRoomProcessor { if (chat.getFormattedText().contains("§r§6 ⓒ")) { questionDialogStart = false; - parseDialog(); + parseDialog = true; } } public static final Pattern anwerPattern = Pattern.compile("§r§6 . §a(.+)§r"); |