From a01054711dd74fea6fb91112d022a90bc24d332f Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 3 Dec 2013 15:51:04 +1100 Subject: [PATCH] Take random light updates option into account before relighting a chunk on its first tick. --- ...low-Disabling-of-Random-Lighting-Updates.patch | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CraftBukkit-Patches/0041-Allow-Disabling-of-Random-Lighting-Updates.patch b/CraftBukkit-Patches/0041-Allow-Disabling-of-Random-Lighting-Updates.patch index 2adae46e6..ef2b1bf73 100644 --- a/CraftBukkit-Patches/0041-Allow-Disabling-of-Random-Lighting-Updates.patch +++ b/CraftBukkit-Patches/0041-Allow-Disabling-of-Random-Lighting-Updates.patch @@ -1,9 +1,22 @@ -From b2ea34ea89dc267a6d37767a937693c4915a34ae Mon Sep 17 00:00:00 2001 +From b41a6f127eb5532a265a8ee45a630d65ce575dc0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 22 Jun 2013 16:12:02 +1000 Subject: [PATCH] Allow Disabling of Random Lighting Updates +diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java +index 3bcca91..efe7ca5 100644 +--- a/src/main/java/net/minecraft/server/Chunk.java ++++ b/src/main/java/net/minecraft/server/Chunk.java +@@ -895,7 +895,7 @@ public class Chunk { + } + + this.m = true; +- if (!this.lit && this.done) { ++ if (!this.lit && this.done && this.world.spigotConfig.randomLightUpdates) { // Spigot - also use random light updates setting to determine if we should relight + this.p(); + } + } diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 6965e82..6997d03 100644 --- a/src/main/java/net/minecraft/server/World.java