Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Do not send empty upsert player info packets
There is no harm in this, but seemingly, some common mod blows up on this, and, well, why eat buffer?
Dieser Commit ist enthalten in:
Ursprung
5cdcf86cf9
Commit
368d1a7c12
@ -166,8 +166,10 @@ public class VelocityTabList implements InternalTabList {
|
|||||||
return entry;
|
return entry;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!actions.isEmpty()) {
|
||||||
this.connection.write(new UpsertPlayerInfoPacket(actions, List.of(playerInfoEntry)));
|
this.connection.write(new UpsertPlayerInfoPacket(actions, List.of(playerInfoEntry)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<TabListEntry> removeEntry(UUID uuid) {
|
public Optional<TabListEntry> removeEntry(UUID uuid) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren