Hopefully fix issue #2 by using an unsigned byte

This commit is contained in:
md-5 2012-10-19 09:51:48 +12:00
parent ec1829d921
commit 5962ebd992

View File

@ -39,7 +39,7 @@ public class PacketDefinitions {
private static final Instruction METADATA = new Instruction() {
@Override
void read(DataInput in) throws IOException {
byte x = in.readByte();
int x = in.readUnsignedByte();
while (x != 127) {
int type = x >> 5;
switch (type) {