From 88b2981e09768efa48fb5e8e3bcb05c562883520 Mon Sep 17 00:00:00 2001 From: Bjarne Koll Date: Tue, 17 Dec 2024 20:32:08 +0100 Subject: [PATCH] Readd final mod to ChunkHolder#getTickingChunk --- .../net/minecraft/server/level/ChunkHolder.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) 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> 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;