Skip to content

Commit

Permalink
Remove debug logpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuilder1961 authored Nov 21, 2024
1 parent ddd541f commit a4f9685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/obro1961/chatpatches/util/ChatUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static Text modifyMessage(@NotNull Text m) {
if(ChatLog.isRestoring())
return m; // cancels modifications when loading the chatlog or regenerating visibles

boolean lastEmpty = msgData.equals(ChatUtils.NIL_MSG_DATA);ChatPatches.LOGGER.warn("msgData: {}", msgData);
boolean lastEmpty = msgData.equals(ChatUtils.NIL_MSG_DATA);
Date now = lastEmpty ? new Date() : msgData.timestamp();
String nowStr = String.valueOf(now.getTime()); // for context menu and storing timestamp data! only affects the timestamp
Style style = m.getStyle();
Expand Down Expand Up @@ -415,4 +415,4 @@ public static Text getCondensedMessage(Text incoming, int index) {

/** Represents the metadata of a chat message. */
public record MessageData(GameProfile sender, Date timestamp, boolean vanilla) {}
}
}

0 comments on commit a4f9685

Please sign in to comment.