From 4d3ec196580f59c2841b2536ef1b886ae2389e11 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Tue, 12 Jun 2018 15:46:08 +0100 Subject: [PATCH] [CI-SKIP] Fix comment on unlit chunk sending patch --- ...Don-t-blindly-send-unlit-chunks-when-lighting-update.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/Don-t-blindly-send-unlit-chunks-when-lighting-update.patch b/Spigot-Server-Patches/Don-t-blindly-send-unlit-chunks-when-lighting-update.patch index 81d061586..c8d89cc84 100644 --- a/Spigot-Server-Patches/Don-t-blindly-send-unlit-chunks-when-lighting-update.patch +++ b/Spigot-Server-Patches/Don-t-blindly-send-unlit-chunks-when-lighting-update.patch @@ -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 @@ -0,0 +0,0 @@ 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