[CI-SKIP] Fix comment on unlit chunk sending patch
This commit is contained in:
parent
84d350c24c
commit
179439e48e
|
@ -1,4 +1,4 @@
|
|||
From 92f05c91447dccd21a3efbb7708f813ce6bd1864 Mon Sep 17 00:00:00 2001
|
||||
From bb881bebce0630ef0b89924c4440fc0a38a3df35 Mon Sep 17 00:00:00 2001
|
||||
From: Shane Freeder <theboyetronic@gmail.com>
|
||||
Date: Mon, 18 Dec 2017 07:26:56 +0000
|
||||
Subject: [PATCH] Don't blindly send unlit chunks when lighting updates are
|
||||
|
@ -18,7 +18,7 @@ only send chunks which are actually ready to be sent, otherwise, we
|
|||
will always send chunks.
|
||||
|
||||
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
|
||||
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
||||
@@ -39,7 +39,7 @@ public class Chunk {
|
||||
|
@ -36,7 +36,7 @@ index d1066d82..001fca42 100644
|
|||
*/
|
||||
- return true;
|
||||
+ // 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.
|
||||
+ return !this.world.spigotConfig.randomLightUpdates || (this.isTicked() && this.done && this.lit);
|
||||
+ // Paper End
|
||||
|
@ -44,5 +44,5 @@ index d1066d82..001fca42 100644
|
|||
}
|
||||
|
||||
--
|
||||
2.14.3
|
||||
2.17.1
|
||||
|
||||
|
|
Loading…
Reference in New Issue