Micro optimize by using ubyte in skips

This commit is contained in:
md_5 2012-10-20 21:37:04 +11:00
parent 5962ebd992
commit f38ef71de8
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<version>4.10</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -1,6 +1,7 @@
package net.md_5.mc.protocol;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@ -262,7 +263,7 @@ public class PacketDefinitions {
final void skip(DataInput in, int len) throws IOException {
for (int i = 0; i < len; i++) {
in.readByte();
in.readUnsignedByte();
}
}