Skip to content

Commit

Permalink
change: minor aesthetic updates for tab and chat features
Browse files Browse the repository at this point in the history
This hides the ping number in tab when it is the 9999 placeholder, and changes the repeat message counter to be [x2] rather than (2).
  • Loading branch information
calcastor committed Jun 15, 2023
1 parent a6be358 commit cd6dd19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class GuiPlayerTabOverlayMixin_ReadablePing {

GlStateManager.pushMatrix();
GlStateManager.scale(0.5f, 0.5f, 0.5f);
mc.fontRendererObj.drawStringWithShadow(" " + (ping == 0 ? "?" : ping), (2 * x) - 10, 2 * y, color);
mc.fontRendererObj.drawStringWithShadow(" " + (ping == 0 ? "?" : ping == 9999 ? " " : ping), (2 * x) - 10, 2 * y, color);
GlStateManager.scale(2.0f, 2.0f, 2.0f);
GlStateManager.popMatrix();
ci.cancel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static void appendMessageCounter(IChatComponent chatComponent, boolean re
} else {
entry.messageCount++;
entry.lastSeenMessageMillis = currentTime;
chatComponent.appendSibling(new ChatComponentIgnored(ChatColor.GRAY + " (" + decimalFormat.format(entry.messageCount) + ")"));
chatComponent.appendSibling(new ChatComponentIgnored(ChatColor.GRAY + " [" + "x" + decimalFormat.format(entry.messageCount) + "]"));
}
}
}
Expand Down

0 comments on commit cd6dd19

Please sign in to comment.