mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
limit chunk unloading to 50 per tick
This commit is contained in:
parent
9832ce06f1
commit
87dc04b750
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue