Fix 1.6.1 berry leaderboards (im sped and forgot to update client)
This commit is contained in:
@@ -72,6 +72,11 @@ foreach ($rows as $row) {
|
|||||||
usort($mapped, fn($a,$b) => $b['value'] <=> $a['value']);
|
usort($mapped, fn($a,$b) => $b['value'] <=> $a['value']);
|
||||||
$limited = array_slice($mapped, 0, 500);
|
$limited = array_slice($mapped, 0, 500);
|
||||||
|
|
||||||
echo encrypt(json_encode(["entries" => $limited, "customIcons" => $icons]));
|
$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();
|
$conn->close();
|
||||||
Reference in New Issue
Block a user