mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-24 17:47:41 +01:00
#2362: Fixed tablist rewrite getting wrong field
Also only sets the ping in right circumstances.
This commit is contained in:
parent
a3b44aa612
commit
74e077e0fb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user