String fps;
if (animationEnabled) {
try {
int currentFps = mc.debugFPS;
animatedFps = lerp(animatedFps, currentFps, 0.001f);
fps = String.valueOf((int) animatedFps);
LOGGER.debug("FPS animated: current={}, animated={}", currentFps, animatedFps);
} catch (Exception e) {
LOGGER.error("Error in FPS animation, disabling: {}", e.getMessage());
animationEnabled = false;
fps = mc.debugFPS > 0 ? String.valueOf(mc.debugFPS) : "0";
}
} else {
fps = mc.debugFPS > 0 ? String.valueOf(mc.debugFPS) : "0";
}
String ping = (mc.player != null && mc.getConnection() != null && mc.getConnection().getPlayerInfo(mc.player.getUniqueID()) != null)
? String.valueOf(mc.getConnection().getPlayerInfo(mc.player.getUniqueID()).getResponseTime())
: "0";
String time = new SimpleDateFormat("HH:mm:ss").format(new Date());
}