Fix chat parser bug

This commit is contained in:
7cc5c4f330d47060 2024-07-22 18:10:35 -04:00
parent 1b86f2b045
commit 85ef6b3d40

View file

@ -38,11 +38,7 @@ const parse=function(_data, l = 0, resetColor = [consoleColors.reset]){
}
let data;
if(typeof _data == "string"){
try {
data=JSON.parse(_data);
} catch(e){
data={text:_data, color: "reset"}
}
data={text:_data, color: "reset"}
} else if(typeof _data == "number"){
data={text:_data+"", color: "reset"}
} else {