Fix extra respawn packet byte on <1.21.2 (#1448)

This commit is contained in:
Michael 2024-10-22 19:01:55 +02:00 committed by GitHub
parent 05235da55d
commit 7a9227d517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -278,7 +278,7 @@ public class RespawnPacket implements MinecraftPacket {
ProtocolUtils.writeVarInt(buf, portalCooldown);
}
if (version.noLessThan(ProtocolVersion.MINECRAFT_1_12_1)) {
if (version.noLessThan(ProtocolVersion.MINECRAFT_1_21_2)) {
ProtocolUtils.writeVarInt(buf, seaLevel);
}