aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0624-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2024-04-26 16:43:59 -0700
committerJake Potrebic <[email protected]>2024-04-26 17:00:40 -0700
commitc38f96b0e57ad28f444dad8d1c4d2f1fb6ea19cb (patch)
tree419c16734eadf2568b42f966a6fc3a7e16728397 /patches/server/0624-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch
parent6a4974b1b96312b31383fca985c5d409b3939b42 (diff)
downloadPaper-c38f96b0e57ad28f444dad8d1c4d2f1fb6ea19cb.tar.gz
Paper-c38f96b0e57ad28f444dad8d1c4d2f1fb6ea19cb.zip
deprecate our ItemRarity API
Diffstat (limited to 'patches/server/0624-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch')
-rw-r--r--patches/server/0624-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0624-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch b/patches/server/0624-Don-t-read-neighbour-chunk-data-off-disk-when-conver.patch
new file mode 100644
index 0000000000..0c62fa92a6
--- /dev/null
+++ b/patches/server/0624-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 09a73383867d1ffadababd24428ee7a61ab98959..e605dbdb821b2d13217ac88426e50480a4e4741d 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
+@@ -47,6 +47,7 @@ public class ChunkStorage implements AutoCloseable {
+
+ // CraftBukkit start
+ private boolean check(ServerChunkCache cps, int x, int z) {
++ if (true) return true; // Paper - Perf: 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");