aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjarne Koll <[email protected]>2024-12-17 20:32:08 +0100
committerBjarne Koll <[email protected]>2024-12-17 20:32:08 +0100
commit88b2981e09768efa48fb5e8e3bcb05c562883520 (patch)
tree377bd2c4ccc3059b49742143574e15abdb366794
parent7caf863b526572460e7642dad62d2b46b5f0bfba (diff)
downloadPaper-88b2981e09768efa48fb5e8e3bcb05c562883520.tar.gz
Paper-88b2981e09768efa48fb5e8e3bcb05c562883520.zip
Readd final mod to ChunkHolder#getTickingChunk
-rw-r--r--paper-server/patches/sources/net/minecraft/server/level/ChunkHolder.java.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/paper-server/patches/sources/net/minecraft/server/level/ChunkHolder.java.patch b/paper-server/patches/sources/net/minecraft/server/level/ChunkHolder.java.patch
index 20c5bbee04..8d1373ef67 100644
--- a/paper-server/patches/sources/net/minecraft/server/level/ChunkHolder.java.patch
+++ b/paper-server/patches/sources/net/minecraft/server/level/ChunkHolder.java.patch
@@ -32,6 +32,15 @@
public CompletableFuture<ChunkResult<LevelChunk>> getTickingChunkFuture() {
return this.tickingChunkFuture;
}
+@@ -84,7 +_,7 @@
+ }
+
+ @Nullable
+- public LevelChunk getTickingChunk() {
++ public final LevelChunk getTickingChunk() { // Paper - final for inline
+ return this.getTickingChunkFuture().getNow(UNLOADED_LEVEL_CHUNK).orElse(null);
+ }
+
@@ -129,6 +_,7 @@
} else {
boolean flag = this.hasChangedSections;