mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
Fix build?
This commit is contained in:
parent
76eb2a5e5c
commit
f1f8060a4e
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ index 0000000000..3aa614833d
|
||||||
+ chunk.world.getChunkAt(locX, locZ - 1);
|
+ chunk.world.getChunkAt(locX, locZ - 1);
|
||||||
+ chunk.world.getChunkAt(locX, locZ + 1);
|
+ chunk.world.getChunkAt(locX, locZ + 1);
|
||||||
+ } else if (chunkEdgeMode == ChunkEdgeMode.WAIT) {
|
+ } else if (chunkEdgeMode == ChunkEdgeMode.WAIT) {
|
||||||
+ if (chunkProvider.getChunkIfLoadedImmediately(locX - 1, locZ) == null || chunkProvider.getChunkIfLoadedImmediately(locX + 1, locZ) == null || chunkProvider.getChunkIfLoadedImmediately(locX, locZ - 1) == null || chunkProvider.getChunkIfLoadedImmediately(locX, locZ + 1) == null) {
|
+ if (chunkProvider.getChunkAtIfLoadedImmediately(locX - 1, locZ) == null || chunkProvider.getChunkAtIfLoadedImmediately(locX + 1, locZ) == null || chunkProvider.getChunkAtIfLoadedImmediately(locX, locZ - 1) == null || chunkProvider.getChunkAtIfLoadedImmediately(locX, locZ + 1) == null) {
|
||||||
+ //Don't create the chunk packet now, wait until nearby chunks are loaded and create it later
|
+ //Don't create the chunk packet now, wait until nearby chunks are loaded and create it later
|
||||||
+ return false;
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
|
|
Loading…
Reference in a new issue