3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-27 08:30:18 +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:
Shane Freeder 2024-05-01 18:03:37 +01:00
Ursprung 5cdcf86cf9
Commit 368d1a7c12
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: A3F61EA5A085289C

Datei anzeigen

@ -166,7 +166,9 @@ public class VelocityTabList implements InternalTabList {
return entry; return entry;
}); });
this.connection.write(new UpsertPlayerInfoPacket(actions, List.of(playerInfoEntry))); if (!actions.isEmpty()) {
this.connection.write(new UpsertPlayerInfoPacket(actions, List.of(playerInfoEntry)));
}
} }
@Override @Override