Support 1.6 - 1.6.3

This commit is contained in:
Lncvrt committed 2025-08-28 10:27:59 -07:00
1 parent 331d7e99a0
commit 8f1f6098e3
4 files changed
+12 -5

No files matched your search

+6 -1
View File
@@ -50,6 +50,11 @@ foreach ($rows as $row) {
];
}
echo encrypt(json_encode(["messages" => array_reverse($mapped), "customIcons" => $icons]));
if (getClientVersion() == "1.6") {
echo encrypt(json_encode($mapped));
} else {
echo encrypt(json_encode(["messages" => array_reverse($mapped), "customIcons" => $icons]));
}
$conn->close();
+1 -2
View File
@@ -72,8 +72,7 @@ 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 ($_SERVER['HTTP_REQUESTER'] == 'BerryDashLauncher') {
if (getClientVersion() == "1.6" || (getClientVersion() == "1.6.1" && $request_type == "1")) {
echo encrypt(json_encode($limited));
} else {
echo encrypt(json_encode(["entries" => $limited, "customIcons" => $icons]));