From 0e3fa06ecd72336ed313547ae8eaa20b5944355f Mon Sep 17 00:00:00 2001 From: Kurt Thiemann Date: Thu, 7 Nov 2024 14:47:01 +0100 Subject: [PATCH] support negative query challange tokens --- package.json | 2 +- src/Packet/Query/FullStatRequest.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 21f854a..0a5ba16 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "craftping", "type": "module", - "version": "1.1.1", + "version": "1.1.2", "main": "index.js", "repository": "github:aternosorg/craftping", "scripts": { diff --git a/src/Packet/Query/FullStatRequest.js b/src/Packet/Query/FullStatRequest.js index dcb5d8f..5afeceb 100644 --- a/src/Packet/Query/FullStatRequest.js +++ b/src/Packet/Query/FullStatRequest.js @@ -6,7 +6,7 @@ export default class FullStatRequest extends BasicStatRequest { */ writePayload() { let buffer = Buffer.alloc(8); - buffer.writeUint32BE(this.challengeToken, 0); + buffer.writeInt32BE(this.challengeToken, 0); buffer.writeUint32BE(0, 4); return buffer; }