mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
Hopefully fix issue #2 by using an unsigned byte
This commit is contained in:
parent
ec1829d921
commit
5962ebd992
@ -39,7 +39,7 @@ public class PacketDefinitions {
|
|||||||
private static final Instruction METADATA = new Instruction() {
|
private static final Instruction METADATA = new Instruction() {
|
||||||
@Override
|
@Override
|
||||||
void read(DataInput in) throws IOException {
|
void read(DataInput in) throws IOException {
|
||||||
byte x = in.readByte();
|
int x = in.readUnsignedByte();
|
||||||
while (x != 127) {
|
while (x != 127) {
|
||||||
int type = x >> 5;
|
int type = x >> 5;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user