mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
More latency handling fixes.
Fixed Clientside rendering issues of the PlayerInfo window if max players > 126. Limited PlayerInfo packets to 126 at a time as it cannot render anymore than 126.
This commit is contained in:
@@ -320,6 +320,11 @@ public class ServerConfigurationManager {
|
||||
|
||||
if (this.p-- <= 0) {
|
||||
for (i = 0; i < this.players.size(); ++i) {
|
||||
// CraftBukkit start -- Client cannot render anymore than 126 Players so there's no point sending anymore packets.
|
||||
if (i > 126) {
|
||||
break;
|
||||
}
|
||||
// CraftBukkit end
|
||||
EntityPlayer entityplayer = (EntityPlayer) this.players.get(i);
|
||||
|
||||
this.sendAll(new Packet201PlayerInfo(entityplayer.name, true, entityplayer.i));
|
||||
|
Reference in New Issue
Block a user