From 0ce572c12268792cfc891c56bf8ee76a4fa60319 Mon Sep 17 00:00:00 2001 From: OBro1961 Date: Mon, 23 Sep 2024 18:38:24 -0500 Subject: [PATCH] Remove debug logpoint --- .../chatpatches/mixin/chat/MessageHandlerMixin.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/obro1961/chatpatches/mixin/chat/MessageHandlerMixin.java b/src/main/java/obro1961/chatpatches/mixin/chat/MessageHandlerMixin.java index 0a2a1f9..144eb24 100644 --- a/src/main/java/obro1961/chatpatches/mixin/chat/MessageHandlerMixin.java +++ b/src/main/java/obro1961/chatpatches/mixin/chat/MessageHandlerMixin.java @@ -45,7 +45,7 @@ public abstract class MessageHandlerMixin { private void cacheChatData(SignedMessage message, GameProfile sender, MessageType.Parameters params, CallbackInfo ci) { // only logs the metadata if it was a player-sent message (otherwise tries to format some commands like /msg and /me) ChatPatches.msgData = params.type().value().chat().translationKey().equals("chat.type.text") - ? new ChatUtils.MessageData(sender, Date.from(message.getTimestamp()), isVanilla(params.applyChatDecoration(message.getContent()), "CHAT")) + ? new ChatUtils.MessageData(sender, Date.from(message.getTimestamp()), isVanilla(params.applyChatDecoration(message.getContent()))) : ChatUtils.NIL_MSG_DATA; } @@ -59,7 +59,7 @@ private void cacheGameData(Text message, boolean overlay, CallbackInfo ci) { UUID id = extractSender(message); ChatPatches.msgData = !id.equals(Util.NIL_UUID) - ? new ChatUtils.MessageData(new GameProfile(id, name), new Date(), isVanilla(message, "GAME")) + ? new ChatUtils.MessageData(new GameProfile(id, name), new Date(), isVanilla(message)) : ChatUtils.NIL_MSG_DATA; } @@ -78,8 +78,7 @@ private void cacheGameData(Text message, boolean overlay, CallbackInfo ci) { * to properly include the playername. */ @Unique - private boolean isVanilla(Text message, String... type) { - ChatPatches.LOGGER.warn("checking {} message \"{}\" = {}", type, message.getString(), message.getString().matches(ChatUtils.VANILLA_FORMAT)); + private boolean isVanilla(Text message) { return message.getString().matches(ChatUtils.VANILLA_FORMAT); } } \ No newline at end of file