Skip to content

Commit

Permalink
24w38a
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrygames committed Sep 19, 2024
1 parent c76873d commit 473ff19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public boolean isSupported() {
MINECRAFT_1_20_3(765, "1.20.3", "1.20.4"),
MINECRAFT_1_20_5(766, "1.20.5", "1.20.6"),
MINECRAFT_1_21(767, "1.21", "1.21.1"),
MINECRAFT_1_21_2(768, 206, "1.21.2");
MINECRAFT_1_21_2(768, 210, "1.21.2");

private static final int SNAPSHOT_BIT = 30;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersi
if (version.noLessThan(ProtocolVersion.MINECRAFT_1_19)) {
properties = ProtocolUtils.readProperties(buf);
}
if (version.noLessThan(ProtocolVersion.MINECRAFT_1_20_5)) {
if (version == ProtocolVersion.MINECRAFT_1_20_5 || version == ProtocolVersion.MINECRAFT_1_21) {
buf.readBoolean();
}
}
Expand Down Expand Up @@ -123,7 +123,7 @@ public void encode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersi
ProtocolUtils.writeProperties(buf, properties);
}
}
if (version.noLessThan(ProtocolVersion.MINECRAFT_1_20_5)) {
if (version == ProtocolVersion.MINECRAFT_1_20_5 || version == ProtocolVersion.MINECRAFT_1_21) {
buf.writeBoolean(strictErrorHandling);
}
}
Expand Down

0 comments on commit 473ff19

Please sign in to comment.