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:
Rigby
2011-09-16 08:52:36 +01:00
committed by EvilSeph
parent 76493f9c76
commit 456ce51711
2 changed files with 12 additions and 1 deletions

View File

@@ -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));