diff --git a/src/main/java/eu/m724/tweaks/ping/F3NameListener.java b/src/main/java/eu/m724/tweaks/ping/F3NameListener.java index 9b6dff1..b2d2f5b 100644 --- a/src/main/java/eu/m724/tweaks/ping/F3NameListener.java +++ b/src/main/java/eu/m724/tweaks/ping/F3NameListener.java @@ -75,15 +75,17 @@ public class F3NameListener { private String getBrandText(Player player) { String _text = text; + String sep = text.isEmpty() ? "" : " | "; + if (showMspt) { double mspt = PlayerPing.getMillisPerTick(); if (mspt > 50.05) { // mspt is at least like 50.01 because of some measuring overheads (I think) - _text += " | %.2f mspt".formatted(mspt); + _text += sep + "%.2f mspt".formatted(mspt); } } if (showPing) { - _text += " | %.2f ms".formatted(PlayerPing.getPingMillis(player)); + _text += sep + "%.2f ms".formatted(PlayerPing.getPingMillis(player)); } return _text;