Converting mapRender to chunkRender