aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0755-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0755-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch')
-rw-r--r--patches/server/0755-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0755-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch b/patches/server/0755-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch
new file mode 100644
index 0000000000..c5bd6526f7
--- /dev/null
+++ b/patches/server/0755-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch
@@ -0,0 +1,21 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Spottedleaf <[email protected]>
+Date: Sun, 11 Apr 2021 02:58:48 -0700
+Subject: [PATCH] Don't read neighbour chunk data off disk when converting
+ chunks
+
+Lighting is purged on update anyways, so let's not add more
+into the conversion process
+
+diff --git a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java
+index f706058877dc3f88aab4e7028665ca53376beac1..a5a45118644fc1bc8caeefa59b5f897ed590e7ae 100644
+--- a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java
++++ b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java
+@@ -44,6 +44,7 @@ public class ChunkStorage implements AutoCloseable {
+
+ // CraftBukkit start
+ private boolean check(ServerChunkCache cps, int x, int z) throws IOException {
++ if (true) return true; // Paper - this isn't even needed anymore, light is purged updating to 1.14+, why are we holding up the conversion process reading chunk data off disk - return true, we need to set light populated to true so the converter recognizes the chunk as being "full"
+ ChunkPos pos = new ChunkPos(x, z);
+ if (cps != null) {
+ //com.google.common.base.Preconditions.checkState(org.bukkit.Bukkit.isPrimaryThread(), "primary thread"); // Paper - this function is now MT-Safe