mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05: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:
1 parent
76493f9c76
commit
456ce51711
2 files changed
+12
-1
No files matched your search
@@ -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