Micro optimize by using ubyte in skips
This commit is contained in:
parent
5962ebd992
commit
f38ef71de8
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user