diff --git a/Binato.js b/Binato.js index e29705f..b93063f 100644 --- a/Binato.js +++ b/Binato.js @@ -35,7 +35,7 @@ if (config.compression) { } else consoleHelper.printWarn("Gzip Compression is disabled!"); app.use((req, res) => { - req.packet = new Buffer.alloc(0); + req.packet = Buffer.alloc(0); req.on("data", (chunk) => req.packet = Buffer.concat([req.packet, chunk], req.packet.length + chunk.length)); req.on("end", () => { switch (req.method) { diff --git a/server/User.js b/server/User.js index f9cacb5..e27654c 100644 --- a/server/User.js +++ b/server/User.js @@ -6,7 +6,7 @@ module.exports = class { this.username = username; this.uuid = uuid; this.connectTime = connectTime; - this.queue = new Buffer.alloc(0); + this.queue = Buffer.alloc(0); // Binato specific this.rankingMode = 0; @@ -130,6 +130,6 @@ module.exports = class { // Clears out the user's queue clearQueue() { - this.queue = new Buffer.alloc(0); + this.queue = Buffer.alloc(0); } } \ No newline at end of file