13
0
geforkt von Mirrors/Paper

Fix silly infiniteloop in pingpacket

Dieser Commit ist enthalten in:
Erik Broes 2011-09-17 14:35:48 +02:00
Ursprung e83a197567
Commit 0ae6e11761

Datei anzeigen

@ -330,9 +330,8 @@ public class ServerConfigurationManager {
int lastIndex = (this.server.ticks * packetsToSend) % totalPacketCount;
for (int i = lastIndex; i < lastIndex + packetsToSend; i++) {
i %= totalPacketCount;
toIndex = i % playerCount;
fromIndex = i / playerCount;
fromIndex = (i % totalPacketCount) / playerCount;
((EntityPlayer) this.players.get(toIndex)).netServerHandler.sendPacket(new Packet201PlayerInfo(((EntityPlayer) this.players.get(fromIndex)).name, true, ((EntityPlayer) this.players.get(fromIndex)).i));
}