1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-21 08:55:21 +01:00

Sort out incorrect logic in MeshUpdateQueue::addBlock()

This commit is contained in:
sfan5
2025-08-14 14:48:45 +02:00
parent 1d53ec4892
commit 54d48decad
2 changed files with 58 additions and 27 deletions

View File

@@ -42,6 +42,13 @@ struct QueuedMeshUpdate
* @note not done by destructor, since this is only safe on main thread
*/
void dropBlocks();
/**
* Check if the blocks that would comprise the mesh are all air, so the
* update can be skipped entirely.
* @param cell_size mesh grid cell size
* @return (true = all air)
*/
bool checkSkip(u16 cell_size);
};
/*