diff options
author | tahg <tahgtahv@gmail.com> | 2011-03-02 00:24:22 -0800 |
---|---|---|
committer | tahg <tahgtahv@gmail.com> | 2011-03-02 00:24:22 -0800 |
commit | 87dc04b750dbac415597a3e5e98ad7875d24d058 (patch) | |
tree | 31cbc9465c9b3244ee006d3d55b02e71e5888351 /src/main/java/net/minecraft/server/ChunkProviderServer.java | |
parent | 9832ce06f11f17d5b8ca80079392958284c00738 (diff) | |
download | craftbukkit-87dc04b750dbac415597a3e5e98ad7875d24d058.tar craftbukkit-87dc04b750dbac415597a3e5e98ad7875d24d058.tar.gz craftbukkit-87dc04b750dbac415597a3e5e98ad7875d24d058.tar.lz craftbukkit-87dc04b750dbac415597a3e5e98ad7875d24d058.tar.xz craftbukkit-87dc04b750dbac415597a3e5e98ad7875d24d058.zip |
limit chunk unloading to 50 per tick
Diffstat (limited to 'src/main/java/net/minecraft/server/ChunkProviderServer.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ChunkProviderServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java index 5d54c2cd..86f3d60b 100644 --- a/src/main/java/net/minecraft/server/ChunkProviderServer.java +++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java @@ -207,7 +207,7 @@ public class ChunkProviderServer implements IChunkProvider { if (!this.g.w) { // CraftBukkit start Server server = g.getServer(); - while (!this.a.isEmpty()) { + for (int i = 0; i < 50 && !this.a.isEmpty(); i++) { long chunkcoordinates = this.a.popFirst(); Chunk chunk = e.get(chunkcoordinates); if (chunk == null) continue; |