Readd final mod to ChunkHolder#getTickingChunk

This commit is contained in:
Bjarne Koll 2024-12-17 20:32:08 +01:00
parent 7caf863b52
commit 88b2981e09
No known key found for this signature in database
GPG Key ID: 9576DAF3FDDB088F

View File

@ -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;