From 041a6ef13e4e666e5a6dbcc5e461f7f9ebf1fe26 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Tue, 12 Apr 2016 23:01:41 +0200 Subject: [PATCH] fix text packet (reference https://github.com/PocketMine/PocketMine-MP/blob/master/src/pocketmine/network/protocol/TextPacket.php#L42) --- data/protocol.json | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/data/protocol.json b/data/protocol.json index 0f8b361..820baff 100644 --- a/data/protocol.json +++ b/data/protocol.json @@ -888,9 +888,9 @@ "compareTo": "type", "fields": { "1": "string", - "5": "string" + "3": "string" }, - "default": "1" + "default": "void" } ] }, @@ -901,12 +901,33 @@ { "compareTo": "type", "fields": { + "0": "string", "1": "string", + "2": "string", + "3": "string", + "4": "string", "5": "string" - }, - "default": "1" + } } ] + }, + { + "name": "parameters", + "type": [ + "switch", + { + "compareTo": "type", + "fields":{ + "2":[ + "array", { + "countType":"i8", + "type":"string" + } + ] + }, + "default":"void" + } + ] } ] ],