From 2100b6656673412fcedb6f51ac07dde5501c0b7d Mon Sep 17 00:00:00 2001 From: mbax Date: Thu, 13 Dec 2012 16:31:05 -0500 Subject: [PATCH] Update to protocol version 51 --- pom.xml | 2 +- src/main/java/net/md_5/mendax/PacketDefinitions.java | 2 +- src/main/java/net/md_5/mendax/datainput/BulkChunk.java | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 67aec3b5..f1e17718 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ net.md-5 mendax - 1.4.4-SNAPSHOT + 1.4.6-SNAPSHOT jar Mendax diff --git a/src/main/java/net/md_5/mendax/PacketDefinitions.java b/src/main/java/net/md_5/mendax/PacketDefinitions.java index 961b3ade..5861fd8b 100644 --- a/src/main/java/net/md_5/mendax/PacketDefinitions.java +++ b/src/main/java/net/md_5/mendax/PacketDefinitions.java @@ -35,7 +35,7 @@ public class PacketDefinitions { opCodes[0x14] = new OpCode[]{INT, STRING, INT, INT, INT, BYTE, BYTE, SHORT, METADATA}; opCodes[0x15] = new OpCode[]{INT, ITEM, INT, INT, INT, BYTE, BYTE, BYTE}; opCodes[0x16] = new OpCode[]{INT, INT}; - opCodes[0x17] = new OpCode[]{INT, BYTE, INT, INT, INT, OPTIONAL_MOTION}; + opCodes[0x17] = new OpCode[]{INT, BYTE, INT, INT, INT, BYTE, BYTE, OPTIONAL_MOTION}; opCodes[0x18] = new OpCode[]{INT, BYTE, INT, INT, INT, BYTE, BYTE, BYTE, SHORT, SHORT, SHORT, METADATA}; opCodes[0x19] = new OpCode[]{INT, STRING, INT, INT, INT, INT}; opCodes[0x1A] = new OpCode[]{INT, INT, INT, INT, SHORT}; diff --git a/src/main/java/net/md_5/mendax/datainput/BulkChunk.java b/src/main/java/net/md_5/mendax/datainput/BulkChunk.java index 13c71e02..4e2de002 100644 --- a/src/main/java/net/md_5/mendax/datainput/BulkChunk.java +++ b/src/main/java/net/md_5/mendax/datainput/BulkChunk.java @@ -8,7 +8,8 @@ public class BulkChunk extends Instruction { @Override void read(DataInput in) throws IOException { short count = in.readShort(); - INT_BYTE.read(in); - skip(in, count * 12); + int size = in.readInt(); + in.readBoolean(); + skip(in, size + count * 12); } }