Merge branch 'master' into newads

This commit is contained in:
Miodec 2023-04-05 10:41:29 +02:00
commit 70bf4d7d3c
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ export function implemented(): boolean {
return false;
}
export function validateResult(_result: object): boolean {
export function validateResult(_result: object, _version: string): boolean {
return true;
}

View file

@ -197,7 +197,7 @@ export async function addResult(
}
if (anticheatImplemented()) {
if (!validateResult(result)) {
if (!validateResult(result, req.headers["client-version"] as string)) {
const status = MonkeyStatusCodes.RESULT_DATA_INVALID;
throw new MonkeyError(status.code, "Result data doesn't make sense");
}