Skip to content

Commit

Permalink
Hopefully fix issue #2 by using an unsigned byte
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Oct 18, 2012
1 parent ec1829d commit 5962ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/md_5/mc/protocol/PacketDefinitions.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public String toString() {
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) {
Expand Down

0 comments on commit 5962ebd

Please sign in to comment.