[CI-SKIP] Fix comment on unlit chunk sending patch

This commit is contained in:
Shane Freeder 2018-06-12 15:46:08 +01:00
parent 158f100521
commit 4d3ec19658

View File

@ -18,7 +18,7 @@ only send chunks which are actually ready to be sent, otherwise, we
will always send chunks. will always send chunks.
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
index d1066d82..001fca42 100644 index d1066d82e..b3ee62a4e 100644
--- a/src/main/java/net/minecraft/server/Chunk.java --- a/src/main/java/net/minecraft/server/Chunk.java
+++ b/src/main/java/net/minecraft/server/Chunk.java +++ b/src/main/java/net/minecraft/server/Chunk.java
@@ -0,0 +0,0 @@ public class Chunk { @@ -0,0 +0,0 @@ public class Chunk {
@ -36,7 +36,7 @@ index d1066d82..001fca42 100644
*/ */
- return true; - return true;
+ // Paper Start + // Paper Start
+ // if randomLightUpdates are enabled, we should always return true, otherwise chunks may never send + // if randomLightUpdates are disabled, we should always return true, otherwise chunks may never send
+ // to the client due to not being lit, otherwise retain standard behavior and only send properly lit chunks. + // to the client due to not being lit, otherwise retain standard behavior and only send properly lit chunks.
+ return !this.world.spigotConfig.randomLightUpdates || (this.isTicked() && this.done && this.lit); + return !this.world.spigotConfig.randomLightUpdates || (this.isTicked() && this.done && this.lit);
+ // Paper End + // Paper End