From d067bdb167ffd4f6fd13b0799cc15a8ab3401158 Mon Sep 17 00:00:00 2001 From: Timongcraft Date: Mon, 28 Oct 2024 09:16:47 +0100 Subject: [PATCH] fix: address another comment (from github) --- .../com/velocitypowered/proxy/tablist/VelocityTabList.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabList.java b/proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabList.java index 115261a71..0990119c6 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabList.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabList.java @@ -168,6 +168,11 @@ public class VelocityTabList implements InternalTabList { } playerInfoEntry.setLatency(entry.getLatency()); playerInfoEntry.setListed(entry.isListed()); + if (entry.getListOrder() != 0 + && player.getProtocolVersion().noLessThan(ProtocolVersion.MINECRAFT_1_21_2)) { + actions.add(UpsertPlayerInfoPacket.Action.UPDATE_LIST_ORDER); + playerInfoEntry.setListOrder(entry.getListOrder()); + } } return entry; });