mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Readd final mod to ChunkHolder#getTickingChunk
This commit is contained in:
parent
7caf863b52
commit
88b2981e09
1 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,15 @@
|
||||||
public CompletableFuture<ChunkResult<LevelChunk>> getTickingChunkFuture() {
|
public CompletableFuture<ChunkResult<LevelChunk>> getTickingChunkFuture() {
|
||||||
return this.tickingChunkFuture;
|
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 @@
|
@@ -129,6 +_,7 @@
|
||||||
} else {
|
} else {
|
||||||
boolean flag = this.hasChangedSections;
|
boolean flag = this.hasChangedSections;
|
||||||
|
|
Loading…
Reference in a new issue