Don't print spawn load time when not loading spawn (#5467)

This commit is contained in:
sulu5890 2021-04-22 11:54:11 -05:00
parent 08d5c44532
commit 23b028a34f
2 changed files with 10 additions and 1 deletions

View File

@ -74,6 +74,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
if (true) {
WorldServer worldserver1 = worldserver;
@@ -0,0 +0,0 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
// this.nextTick = SystemUtils.getMonotonicMillis() + 10L;
this.executeModerately();
// CraftBukkit end
- worldloadlistener.b();
+ if (worldserver.getWorld().getKeepSpawnInMemory()) worldloadlistener.b(); // Paper
chunkproviderserver.getLightEngine().a(5);
// CraftBukkit start
// this.updateSpawnFlags();
diff --git a/src/main/java/net/minecraft/server/level/WorldServer.java b/src/main/java/net/minecraft/server/level/WorldServer.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/net/minecraft/server/level/WorldServer.java

View File

@ -34,7 +34,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
@@ -0,0 +0,0 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
this.executeModerately();
// CraftBukkit end
worldloadlistener.b();
if (worldserver.getWorld().getKeepSpawnInMemory()) worldloadlistener.b(); // Paper
- chunkproviderserver.getLightEngine().a(5);
+ chunkproviderserver.getLightEngine().a(worldserver.paperConfig.lightQueueSize); // Paper - increase light queue size
// CraftBukkit start