1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-25 21:55:25 +02:00

Use MapBlock::copyTo to fill MeshMakeData

This commit is contained in:
Lars
2025-06-26 13:16:17 -07:00
committed by lhofhansl
parent 2d36d32da8
commit fcbf05fc30
3 changed files with 1 additions and 11 deletions

View File

@@ -193,7 +193,7 @@ void MeshUpdateQueue::fillDataFromMapBlocks(QueuedMeshUpdate *q)
for (pos.Y = q->p.Y - 1; pos.Y <= q->p.Y + mesh_grid.cell_size; pos.Y++) {
MapBlock *block = q->map_blocks[i++];
if (block)
data->fillBlockData(pos, block->getData());
block->copyTo(data->m_vmanip);
}
data->setCrack(q->crack_level, q->crack_pos);