Re-enable light queue toggle, optimize neighbor checks, add max queue time

light queue is actually buggy, so re-enabling the config.

however, if anyone is ok with the buggy behavior, made the max time lost due to
light queue configurable.

We want to get to making the ligth queue default if we can make it work perfectly.

also applying neighbor optimizations to use the faster method for light checks.
This commit is contained in:
Aikar
2018-09-26 00:57:59 -04:00
parent e1ba203df8
commit 5cdfbda4e4
67 changed files with 303 additions and 271 deletions

View File

@@ -1,4 +1,4 @@
From 935ccef81ea9265bec68c0730db6730835cdf8ec Mon Sep 17 00:00:00 2001
From a18e6adce72a0abc1cf6d290a75a10e6409cf00c Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Sat, 21 Jul 2018 14:27:34 -0400
Subject: [PATCH] Duplicate UUID Resolve Option
@@ -33,10 +33,10 @@ But for those who are ok with leaving this inconsistent behavior, you may use WA
It is recommended you regenerate the entities, as these were legit entities, and deserve your love.
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
index acdff6b20a..abd60fe844 100644
index 99986bac97..1bfa9ad567 100644
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
@@ -439,4 +439,47 @@ public class PaperWorldConfig {
@@ -441,4 +441,47 @@ public class PaperWorldConfig {
log("Bed Search Radius: " + bedSearchRadius);
}
}
@@ -85,7 +85,7 @@ index acdff6b20a..abd60fe844 100644
+ }
}
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
index 0dab65c870..91049ed20f 100644
index 83e9c97873..518e246569 100644
--- a/src/main/java/net/minecraft/server/Chunk.java
+++ b/src/main/java/net/minecraft/server/Chunk.java
@@ -1,5 +1,10 @@