From f72bfdd939a805cabfe64f3f3238ca45375fd1f8 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Fri, 24 Feb 2023 14:16:23 +0000 Subject: Fixes messages not showing after beating a dungeon (#601) --- .../io/github/moulberry/notenoughupdates/dungeons/DungeonWin.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main/java/io') 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 { -- cgit