minecraft-pinger
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -28,3 +28,3 @@ /* | ||
const PROTOCOL_VERSION = 316 // Minecraft 1.11.1 & 1.11.2 | ||
const PROTOCOL_VERSION = 335 // Minecraft 1.12 | ||
@@ -72,2 +72,3 @@ module.exports.createHandshakePacket = (address, port) => { | ||
.then(packet => { | ||
if (!packet) return | ||
if (packet.id === 0) { | ||
@@ -80,2 +81,4 @@ return decodeHandshakeResponse(packet) | ||
.then(packet => { | ||
if (!packet) return | ||
// Remove packet from internal buffer | ||
@@ -82,0 +85,0 @@ this.buffer = this.buffer.slice(packet.bytes) |
{ | ||
"name": "minecraft-pinger", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Dennis Bruner <contact@dennisbruner.de>", | ||
@@ -5,0 +5,0 @@ "description": "A promise-based minecraft pinger in Node.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10319
227