mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-2282: Get loaded chunk
By: md_5 <git@md-5.net>
This commit is contained in:
parent
477241471c
commit
4d42c823d2
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@
|
|||
}
|
||||
|
||||
public Chunk getChunkAt(int i, int j) {
|
||||
- Chunk chunk = this.getOrLoadChunkAt(i, j);
|
||||
+ return getChunkAt(i, j, null);
|
||||
+ }
|
||||
+
|
||||
|
@ -82,7 +83,7 @@
|
|||
+ }
|
||||
+
|
||||
+ public Chunk originalGetChunkAt(int i, int j) {
|
||||
Chunk chunk = this.getOrLoadChunkAt(i, j);
|
||||
+ Chunk chunk = this.getLoadedChunkAt(i, j);
|
||||
+ boolean newChunk = false;
|
||||
+ // CraftBukkit end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue