3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-17 05:20:05 +01:00

limit chunk unloading to 50 per tick

Dieser Commit ist enthalten in:
tahg 2011-03-02 00:24:22 -08:00
Ursprung 9832ce06f1
Commit 87dc04b750

Datei anzeigen

@ -207,7 +207,7 @@ public class ChunkProviderServer implements IChunkProvider {
if (!this.g.w) { if (!this.g.w) {
// CraftBukkit start // CraftBukkit start
Server server = g.getServer(); Server server = g.getServer();
while (!this.a.isEmpty()) { for (int i = 0; i < 50 && !this.a.isEmpty(); i++) {
long chunkcoordinates = this.a.popFirst(); long chunkcoordinates = this.a.popFirst();
Chunk chunk = e.get(chunkcoordinates); Chunk chunk = e.get(chunkcoordinates);
if (chunk == null) continue; if (chunk == null) continue;