diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-08-24 19:51:51 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-08-25 00:54:21 -0400 |
commit | b8cc86208310513232e27d543ec9b6c153ab1421 (patch) | |
tree | 0d7d772e5bb878b189fd4c5bd74c84878aaf088d /src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java | |
parent | 35cff16da572292785201dfb683413623efd0a43 (diff) | |
download | craftbukkit-b8cc86208310513232e27d543ec9b6c153ab1421.tar craftbukkit-b8cc86208310513232e27d543ec9b6c153ab1421.tar.gz craftbukkit-b8cc86208310513232e27d543ec9b6c153ab1421.tar.lz craftbukkit-b8cc86208310513232e27d543ec9b6c153ab1421.tar.xz craftbukkit-b8cc86208310513232e27d543ec9b6c153ab1421.zip |
Update to 1.3.2
Diffstat (limited to 'src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java b/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java index 0939c93e..7111bab4 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java @@ -499,12 +499,8 @@ public abstract class ServerConfigurationManagerAbstract { } public void sendAll(Packet packet) { - Iterator iterator = this.players.iterator(); - - while (iterator.hasNext()) { - EntityPlayer entityplayer = (EntityPlayer) iterator.next(); - - entityplayer.netServerHandler.sendPacket(packet); + for (int i = 0; i < this.players.size(); ++i) { + ((EntityPlayer) this.players.get(i)).netServerHandler.sendPacket(packet); } } |