Skip to content

Commit

Permalink
Fix misreading of ternary in a8788fb (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kas-tle authored Jan 7, 2023
1 parent a8788fb commit 7efd7e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ public static MessageSignature read(ByteBuf in, MinecraftCodecHelper helper) {
int id = helper.readVarInt(in) - 1;
byte[] messageSignature;
if (id == -1) {
messageSignature = null;
} else {
messageSignature = new byte[256];
in.readBytes(messageSignature);
} else {
messageSignature = null;
}
return new MessageSignature(id, messageSignature);
}
Expand Down

0 comments on commit 7efd7e1

Please sign in to comment.