Archived
0

отсутствие чанка не должно генерировать exception's

This commit is contained in:
2018-10-28 21:15:41 +03:00
parent 864f6e71ef
commit c6431dbe43
2 changed files with 3 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ class PlayerEventListener {
for(Integer compressXZ : event.getNeedLoadChunks()) {
int[] xz = CompactedCoords.uncompressXZ(compressXZ);
Chunk chunk = event.getPlayer().getWorld().getChunk(xz[0], xz[1]);
if (chunk == null) continue;
ChunkDataPacket packet = new ChunkDataPacket();
packet.setX(xz[0]);