From 2889153d10b4fa2bb88cddfaa92d38e97d0ed52c Mon Sep 17 00:00:00 2001 From: mhsjlw Date: Sat, 9 Apr 2016 12:20:13 -0400 Subject: [PATCH] fix mcpe_text packet --- data/protocol.json | 28 ++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/data/protocol.json b/data/protocol.json index 2a4c2a1..8ece069 100644 --- a/data/protocol.json +++ b/data/protocol.json @@ -879,6 +879,34 @@ { "name": "type", "type": "i8" + }, + { + "name": "name", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "1": "string", + "5": "string" + }, + "default": "1" + } + ] + }, + { + "name": "message", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "1": "string", + "5": "string" + }, + "default": "1" + } + ] } ] ], diff --git a/package.json b/package.json index 9fbd1d1..7d64fbf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pocket-minecraft-protocol", - "version": "1.1.0", + "version": "1.1.1", "description": "Parse and serialize Minecraft PE packets", "main": "index.js", "scripts": {