From 7224428345d6c562a2587f5a51554f23adc36c16 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 5 Jul 2024 10:19:18 +0200 Subject: [PATCH] Fix 1.20.2+ Tablist vanishing after server switch Signed-off-by: Lixfel --- src/de/steamwar/velocitycore/tablist/Tablist.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/de/steamwar/velocitycore/tablist/Tablist.java b/src/de/steamwar/velocitycore/tablist/Tablist.java index 31c404bc..e87948a9 100644 --- a/src/de/steamwar/velocitycore/tablist/Tablist.java +++ b/src/de/steamwar/velocitycore/tablist/Tablist.java @@ -138,6 +138,9 @@ public class Tablist extends ChannelInboundHandlerAdapter { synchronized (directTabItems) { directTabItems.clear(); } + + if(player.getProtocolVersion().greaterThan(ProtocolVersion.MINECRAFT_1_20)) + current.clear(); } private void injection() {