отсутствие чанка не должно генерировать exception's
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user