yk what, bug fixing requires raw data

This commit is contained in:
Christopher Cookman 2024-01-31 21:25:08 -07:00
parent 023d32fc92
commit 6c9f1248a8
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -106,17 +106,18 @@ function splitKeyword(keyword) {
// } // }
// } // }
// Lets redo this to actually work with v1.10.0 and above, still gotta check because versions older than 1.3 dont have DLC, and wont have the right number of fields // Lets redo this to actually work with v1.10.0 and above, still gotta check because versions older than 1.3 dont have DLC, and wont have the right number of fields
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Server version is ${data[0]}`);
if (data.length < 3) { if (data.length < 3) {
return { return {
"version": data[0] "version": data[0],
"raw": keyword
} }
} else { } else {
return { return {
"version": data[0], "version": data[0],
dlcString, dlcString,
dlc: data[1], dlc: data[1],
"tps": data[2] "tps": data[2],
"raw": keyword
} }
} }
}; };