if (!cw.getHandle().chunkProviderServer.isChunkLoaded(chunkX, chunkZ)) {
return;
}
Chunk c = player.getWorld().getChunkAt(chunkX, chunkZ);
if (c instanceof SpoutChunk) {
SpoutChunk chunk = (SpoutChunk)c;
player.sendPacket(new PacketCustomBlockChunkOverride(chunk.getCustomBlockIds(), chunk.getCustomBlockData(), chunkX, chunkZ));
}
}
}