From f7c9c6d796e410495a43282c1b947438afd15fd0 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 14 Jan 2025 16:11:13 +0100 Subject: [PATCH] Fix tablist --- .../src/de/steamwar/velocitycore/tablist/Tablist.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/tablist/Tablist.java b/VelocityCore/src/de/steamwar/velocitycore/tablist/Tablist.java index 2c380a90..f15bc79c 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/tablist/Tablist.java +++ b/VelocityCore/src/de/steamwar/velocitycore/tablist/Tablist.java @@ -142,8 +142,14 @@ public class Tablist extends ChannelInboundHandlerAdapter { } public void onServerPostSwitch() { - if(player.getProtocolVersion().noLessThan(ProtocolVersion.MINECRAFT_1_20)) + if(player.getProtocolVersion().noLessThan(ProtocolVersion.MINECRAFT_1_20)) { + if(player.getProtocolVersion().greaterThan(ProtocolVersion.MINECRAFT_1_20)) { + sendTabPacket(current, null); + current.clear(); + } + sendPacket(player, createTeamPacket); + } } private void injection() {