Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01: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.
Dieser Commit ist enthalten in:
Ursprung
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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren