From 7a9227d517f7d95296458600fe2ca34f0f2bc296 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 22 Oct 2024 19:01:55 +0200 Subject: [PATCH] Fix extra respawn packet byte on <1.21.2 (#1448) --- .../velocitypowered/proxy/protocol/packet/RespawnPacket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/RespawnPacket.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/RespawnPacket.java index 9304dc3f9..fd9c8ca77 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/RespawnPacket.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/RespawnPacket.java @@ -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); }