Fix 1.6.1 berry leaderboards (im sped and forgot to update client)

This commit is contained in:
2025-08-26 16:08:57 -07:00
parent 8b3ea551fb
commit 13b34dc4e8

View File

@@ -72,6 +72,11 @@ foreach ($rows as $row) {
usort($mapped, fn($a,$b) => $b['value'] <=> $a['value']);
$limited = array_slice($mapped, 0, 500);
$clientVersion = $_SERVER['HTTP_CLIENTVERSION'] ?? "0";
if ($clientVersion == "1.6.1" && $request_type == "1") {
echo encrypt(json_encode($limited));
} else {
echo encrypt(json_encode(["entries" => $limited, "customIcons" => $icons]));
}
$conn->close();