aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhoebe <77941535+catgirlseraid@users.noreply.github.com>2024-05-17 00:49:26 +1200
committerGitHub <noreply@github.com>2024-05-16 14:49:26 +0200
commit98b426bb2751d8e288c8823dc1504e0604dd1654 (patch)
treeaa7d853749c8245d8d4dab1b7d1bbeba0c526a3f /src
parente85db5ed1bacda48f0dd6e8d4b71ef7e9c5996ca (diff)
downloadNotEnoughUpdates-98b426bb2751d8e288c8823dc1504e0604dd1654.tar.gz
NotEnoughUpdates-98b426bb2751d8e288c8823dc1504e0604dd1654.tar.bz2
NotEnoughUpdates-98b426bb2751d8e288c8823dc1504e0604dd1654.zip
Fix filter chat level hiding your own messages (#1167)
Co-authored-by: SeRaid <77941535+SeRaid743@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/listener/ChatListener.java4
1 files changed, 3 insertions, 1 deletions
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);
+ }
}
}