From 74a8bd7b4c78a403ed8be9aec13f200dff5f01c0 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Thu, 30 May 2024 04:08:49 +1000 Subject: Fix dungeon win overlay (#1188) --- .../io/github/moulberry/notenoughupdates/dungeons/DungeonWin.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main') 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 0aa44cd5..40abc59f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonWin.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonWin.java @@ -27,7 +27,6 @@ import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.WorldRenderer; import net.minecraft.client.renderer.vertex.DefaultVertexFormats; -import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.event.ClientChatReceivedEvent; import org.lwjgl.opengl.GL11; @@ -184,9 +183,9 @@ public class DungeonWin { //Added two more Resets, can't do Reset+Reset+Reset cause idk? //hypixel please don't randomly add more + //Clueless - if (e.message.getFormattedText().startsWith( - EnumChatFormatting.RESET + "" + EnumChatFormatting.RESET + "" + EnumChatFormatting.RESET + " ")) { + if (unformatted.trim().startsWith("Team Score:")) { if (currentTime - lastDungeonFinish > 30000) { Matcher matcher = TEAM_SCORE_REGEX.matcher(unformatted); if (matcher.find()) { -- cgit