From 98b426bb2751d8e288c8823dc1504e0604dd1654 Mon Sep 17 00:00:00 2001 From: Phoebe <77941535+catgirlseraid@users.noreply.github.com> Date: Fri, 17 May 2024 00:49:26 +1200 Subject: Fix filter chat level hiding your own messages (#1167) Co-authored-by: SeRaid <77941535+SeRaid743@users.noreply.github.com> --- .../io/github/moulberry/notenoughupdates/listener/ChatListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java index e68c54c8..d831cbbd 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java @@ -284,7 +284,9 @@ public class ChatListener { if (LvlMatcher.matches()) { if (Integer.parseInt(LvlMatcher.group(1)) < NotEnoughUpdates.INSTANCE.config.misc.filterChatLevel && NotEnoughUpdates.INSTANCE.config.misc.filterChatLevel != 0) { - e.setCanceled(true); + if (!unformatted.contains(Minecraft.getMinecraft().thePlayer.getName())) { + e.setCanceled(true); + } } } -- cgit