From 0c509bdfdc71c984027e84629a3f3fefda4d82ea Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 10 Dec 2022 12:30:10 +0100 Subject: [PATCH] Test fix tablist order Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/tablist/Tablist.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/bungeecore/tablist/Tablist.java b/src/de/steamwar/bungeecore/tablist/Tablist.java index b347147..a1ba215 100644 --- a/src/de/steamwar/bungeecore/tablist/Tablist.java +++ b/src/de/steamwar/bungeecore/tablist/Tablist.java @@ -168,8 +168,7 @@ public class Tablist extends MessageToMessageDecoder { pipeline.remove("steamwar-tablist"); pipeline.addBefore(PipelineUtils.BOSS_HANDLER, "steamwar-tablist", this); - if(oldTab()) - player.unsafe().sendPacket(teamPacket); + player.unsafe().sendPacket(teamPacket); } } @@ -324,7 +323,7 @@ public class Tablist extends MessageToMessageDecoder { } private void sendNpcPacket(List names, boolean remove) { - if(oldTab() && !names.isEmpty()) { + if(!names.isEmpty()) { Team packet = new Team(TAB_TEAM); packet.setMode((byte) (remove ? 4 : 3)); packet.setPlayers(names.toArray(new String[0]));