mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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:
parent
89f3991351
commit
c9144ae5e2
10 changed files with 89 additions and 4 deletions
|
@ -1549,6 +1549,11 @@ MapBlock *ServerMap::getBlockOrEmerge(v3s16 p3d)
|
|||
return block;
|
||||
}
|
||||
|
||||
bool ServerMap::isBlockInQueue(v3s16 pos)
|
||||
{
|
||||
return m_emerge && m_emerge->isBlockInQueue(pos);
|
||||
}
|
||||
|
||||
// N.B. This requires no synchronization, since data will not be modified unless
|
||||
// the VoxelManipulator being updated belongs to the same thread.
|
||||
void ServerMap::updateVManip(v3s16 pos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue