3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-06 00:00:47 +01:00

fix: address another comment (from github)

Dieser Commit ist enthalten in:
Timongcraft 2024-10-28 09:16:47 +01:00
Ursprung 6cf9be128d
Commit d067bdb167
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 238806DB2AE97C37

Datei anzeigen

@ -168,6 +168,11 @@ public class VelocityTabList implements InternalTabList {
} }
playerInfoEntry.setLatency(entry.getLatency()); playerInfoEntry.setLatency(entry.getLatency());
playerInfoEntry.setListed(entry.isListed()); playerInfoEntry.setListed(entry.isListed());
if (entry.getListOrder() != 0
&& player.getProtocolVersion().noLessThan(ProtocolVersion.MINECRAFT_1_21_2)) {
actions.add(UpsertPlayerInfoPacket.Action.UPDATE_LIST_ORDER);
playerInfoEntry.setListOrder(entry.getListOrder());
}
} }
return entry; return entry;
}); });