Update to protocol version 51

This commit is contained in:
mbax 2012-12-13 16:31:05 -05:00
parent 1999076429
commit 2100b66566
3 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<groupId>net.md-5</groupId> <groupId>net.md-5</groupId>
<artifactId>mendax</artifactId> <artifactId>mendax</artifactId>
<version>1.4.4-SNAPSHOT</version> <version>1.4.6-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Mendax</name> <name>Mendax</name>

View File

@ -35,7 +35,7 @@ public class PacketDefinitions {
opCodes[0x14] = new OpCode[]{INT, STRING, INT, INT, INT, BYTE, BYTE, SHORT, METADATA}; 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[0x15] = new OpCode[]{INT, ITEM, INT, INT, INT, BYTE, BYTE, BYTE};
opCodes[0x16] = new OpCode[]{INT, INT}; 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[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[0x19] = new OpCode[]{INT, STRING, INT, INT, INT, INT};
opCodes[0x1A] = new OpCode[]{INT, INT, INT, INT, SHORT}; opCodes[0x1A] = new OpCode[]{INT, INT, INT, INT, SHORT};

View File

@ -8,7 +8,8 @@ public class BulkChunk extends Instruction {
@Override @Override
void read(DataInput in) throws IOException { void read(DataInput in) throws IOException {
short count = in.readShort(); short count = in.readShort();
INT_BYTE.read(in); int size = in.readInt();
skip(in, count * 12); in.readBoolean();
skip(in, size + count * 12);
} }
} }