mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-11-14 19:34:58 -05:00
parent
a8788fb899
commit
7efd7e1d3a
1 changed files with 2 additions and 2 deletions
|
@ -16,10 +16,10 @@ public class MessageSignature {
|
||||||
int id = helper.readVarInt(in) - 1;
|
int id = helper.readVarInt(in) - 1;
|
||||||
byte[] messageSignature;
|
byte[] messageSignature;
|
||||||
if (id == -1) {
|
if (id == -1) {
|
||||||
messageSignature = null;
|
|
||||||
} else {
|
|
||||||
messageSignature = new byte[256];
|
messageSignature = new byte[256];
|
||||||
in.readBytes(messageSignature);
|
in.readBytes(messageSignature);
|
||||||
|
} else {
|
||||||
|
messageSignature = null;
|
||||||
}
|
}
|
||||||
return new MessageSignature(id, messageSignature);
|
return new MessageSignature(id, messageSignature);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue