From 76eb2a5e5cc73b41c55b0ef7792ae90c4275d0d2 Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Tue, 25 Jun 2019 22:20:20 -0700 Subject: [PATCH] Use getChunkIfLoadedImmediately not getChunkIfCachedImmediately --- Spigot-Server-Patches/0408-Anti-Xray.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/0408-Anti-Xray.patch b/Spigot-Server-Patches/0408-Anti-Xray.patch index ad50f7689..8607b939b 100644 --- a/Spigot-Server-Patches/0408-Anti-Xray.patch +++ b/Spigot-Server-Patches/0408-Anti-Xray.patch @@ -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; + }