diff --git a/lib/servers.js b/lib/servers.js index 8436041..c1e911c 100644 --- a/lib/servers.js +++ b/lib/servers.js @@ -249,6 +249,13 @@ class ServerRegistration { } getNextProtocolVersion () { + // Minecraft Bedrock Edition does not have protocol versions + if (this.data.type === 'PE') { + return { + protocolId: 0, + protocolIndex: 0 + } + } const protocolVersions = minecraftVersions[this.data.type] if (typeof this._nextProtocolIndex === 'undefined' || this._nextProtocolIndex + 1 >= protocolVersions.length) { this._nextProtocolIndex = 0