43f598fd4e
ChunkEncoder::body_in writes the LevelChunkWithLight body that Clientbound::encode would give, into one buffer sized up front: the cached section bytes and light layers are copied once, uniform light layers are filled in place, and the heightmaps are shared rather than cloned. Before, each chunk sent built a packet (growing its buffer, cloning every 2048-byte layer), then encode copied all of it again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>