From 179439e48e2672802aaacb8761abdaf5bcb336ad 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 --- ...t-blindly-send-unlit-chunks-when-lighting-update.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Spigot-Server-Patches/0252-Don-t-blindly-send-unlit-chunks-when-lighting-update.patch b/Spigot-Server-Patches/0252-Don-t-blindly-send-unlit-chunks-when-lighting-update.patch index 752e9c8dc..511a61212 100644 --- a/Spigot-Server-Patches/0252-Don-t-blindly-send-unlit-chunks-when-lighting-update.patch +++ b/Spigot-Server-Patches/0252-Don-t-blindly-send-unlit-chunks-when-lighting-update.patch @@ -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 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