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:
@@ -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);
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user