From d34724227a6e76c38d4120b70ca0ce0dea942f85 Mon Sep 17 00:00:00 2001 From: holly Date: Tue, 24 Aug 2021 15:13:48 +0100 Subject: [PATCH] whoops --- server/bufferStuff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/bufferStuff.js b/server/bufferStuff.js index ffc5bb5..b351835 100644 --- a/server/bufferStuff.js +++ b/server/bufferStuff.js @@ -115,7 +115,7 @@ module.exports.Writer = class { } writeLong(data = 0) { - if (this.baseSize) { + if (this.baseSize == 0) { const buff = Buffer.alloc(8); if (data instanceof BigInt) buff.writeBigInt64BE(data, 0); else buff.writeBigInt64BE(BigInt(data), 0);