mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fix silly infiniteloop in pingpacket
This commit is contained in:
1 parent
e83a197567
commit
0ae6e11761
1 file changed
+1
-2
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user