aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-02-24 14:16:23 +0000
committerGitHub <noreply@github.com>2023-02-24 15:16:23 +0100
commitf72bfdd939a805cabfe64f3f3238ca45375fd1f8 (patch)
tree4b6ab38f02d79447c4348d61a9a2897e3e374632
parentcf3f08e4fd340ab331a4b61c1159fb527027ade7 (diff)
downloadNotEnoughUpdates-f72bfdd939a805cabfe64f3f3238ca45375fd1f8.tar.gz
NotEnoughUpdates-f72bfdd939a805cabfe64f3f3238ca45375fd1f8.tar.bz2
NotEnoughUpdates-f72bfdd939a805cabfe64f3f3238ca45375fd1f8.zip
Fixes messages not showing after beating a dungeon (#601)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonWin.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonWin.java b/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonWin.java
index a56a5679..8f44242a 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonWin.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonWin.java
@@ -218,8 +218,8 @@ public class DungeonWin {
if (hideChat) {
if (text.size() > 50) text.clear();
- e.setCanceled(true);
if (unformatted.contains("\u25AC")) {
+ e.setCanceled(true);
hideChat = false;
displayWin();
} else {
@@ -229,12 +229,15 @@ public class DungeonWin {
"Total Damage")
|| unformatted.contains("Ally Healing") || unformatted.contains("Enemies Killed") || unformatted.contains(
"Deaths") || unformatted.contains("Secrets Found")) {
+ e.setCanceled(true);
text.add(e.message.getFormattedText().substring(6).trim());
- } else {
+ } else if (unformatted.trim().length() > 6) {
System.out.println(
"These messages would of showed on neu dungeon overlay but didnt, They are either bugged or i missed them: \"" +
e.message.getFormattedText().substring(6).trim() + "\"");
}
+ } else {
+ e.setCanceled(true);
}
}
} else {