mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-24 14:54:03 +08:00
Don't send ping update twice
VelocityTabListEntry#setLatency calls the update method, which constructs a new packet and sends it to the client. The backend packet we are processing also reaches the client, therefore we are sending the same packet twice. VelocityTabListEntry#setLatencyInternal is the correct method here.
This commit is contained in:
parent
c54ea62012
commit
5089da07fc
@ -68,7 +68,7 @@ public class VelocityTabListLegacy extends VelocityTabList {
|
||||
if (nameMapping.containsKey(strippedName)) { // ADD_PLAYER also used for updating ping
|
||||
VelocityTabListEntry entry = entries.get(nameMapping.get(strippedName));
|
||||
if (entry != null) {
|
||||
entry.setLatency(item.getLatency());
|
||||
entry.setLatencyInternal(item.getLatency());
|
||||
}
|
||||
} else {
|
||||
UUID uuid = UUID.randomUUID(); // Use a fake uuid to preserve function of custom entries
|
||||
|
Loading…
Reference in New Issue
Block a user