jess try to handle strings properly challenge (impossible)

This commit is contained in:
Jess H 2024-06-07 03:25:36 +01:00
parent 502b735a32
commit 5b37b06ee3
Signed by: UnixSystemV
GPG key ID: 9B21C50B68D67F19

View file

@ -191,7 +191,7 @@ public class HUD extends Feature {
if (showTPS && showPing)
infoString += " | ";
if (showPing)
infoString += "Ping: " + ServerDataManager.ping + (pingJitter ? (int) (Math.random() * pingJitterAmount) : 0) + " | Players: " + ServerDataManager.players + "/" + ServerDataManager.maxPlayers;
infoString += "Ping: " + (ServerDataManager.ping + (pingJitter ? (int) (Math.random() * pingJitterAmount) : 0)) + " | Players: " + ServerDataManager.players + "/" + ServerDataManager.maxPlayers;
if(infoString.endsWith("\n")) infoString = infoString.substring(0, infoString.length() - 1);
}