Use getChunkIfLoadedImmediately not getChunkIfCachedImmediately

Dieser Commit ist enthalten in:
Spottedleaf 2019-06-25 22:20:20 -07:00 committet von GitHub
Ursprung ad757f967d
Commit 76eb2a5e5c
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -274,7 +274,7 @@ index 0000000000..3aa614833d
+ chunk.world.getChunkAt(locX, locZ - 1);
+ chunk.world.getChunkAt(locX, locZ + 1);
+ } else if (chunkEdgeMode == ChunkEdgeMode.WAIT) {
+ if (chunkProvider.getChunkAtIfCachedImmediately(locX - 1, locZ) == null || chunkProvider.getChunkAtIfCachedImmediately(locX + 1, locZ) == null || chunkProvider.getChunkAtIfCachedImmediately(locX, locZ - 1) == null || chunkProvider.getChunkAtIfCachedImmediately(locX, locZ + 1) == null) {
+ 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) {
+ //Don't create the chunk packet now, wait until nearby chunks are loaded and create it later
+ return false;
+ }