mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Add core.compare_block_status function (#11247)
Makes it possible to check the status of the mapblock in a future-extensible way.
This commit is contained in:
@@ -358,6 +358,13 @@ bool EmergeManager::enqueueBlockEmergeEx(
|
||||
}
|
||||
|
||||
|
||||
bool EmergeManager::isBlockInQueue(v3s16 pos)
|
||||
{
|
||||
MutexAutoLock queuelock(m_queue_mutex);
|
||||
return m_blocks_enqueued.find(pos) != m_blocks_enqueued.end();
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Mapgen-related helper functions
|
||||
//
|
||||
|
Reference in New Issue
Block a user