mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
limit chunk unloading to 50 per tick
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user