From 74e077e0fb78a178ea9f2c4dfea2e7fdeeab8a8e Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 25 Feb 2018 20:00:37 +0000 Subject: [PATCH] #2362: Fixed tablist rewrite getting wrong field Also only sets the ping in right circumstances. --- proxy/src/main/java/net/md_5/bungee/tab/TabList.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/tab/TabList.java b/proxy/src/main/java/net/md_5/bungee/tab/TabList.java index 00f57b2a..7d79ef7b 100644 --- a/proxy/src/main/java/net/md_5/bungee/tab/TabList.java +++ b/proxy/src/main/java/net/md_5/bungee/tab/TabList.java @@ -57,7 +57,10 @@ public abstract class TabList { player.setGamemode( item.getGamemode() ); } - player.setPing( player.getPing() ); + if ( playerListItem.getAction() == PlayerListItem.Action.ADD_PLAYER || playerListItem.getAction() == PlayerListItem.Action.UPDATE_LATENCY ) + { + player.setPing( item.getPing() ); + } } } return playerListItem;