#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.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;
|
return playerListItem;
|
||||||
|
Loading…
Reference in New Issue
Block a user