mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-26 21:35:28 +01:00
Partially restore the existing logic, and try to enqueue a block as before, if the queue is full it will be handled correctly.
This commit is contained in:
@@ -343,11 +343,7 @@ void RemoteClient::GetNextBlocks (
|
|||||||
const bool want_emerge = !block || !block->isGenerated();
|
const bool want_emerge = !block || !block->isGenerated();
|
||||||
|
|
||||||
// if the block is already in the emerge queue we don't have to check again
|
// if the block is already in the emerge queue we don't have to check again
|
||||||
if (want_emerge && emerge->isBlockInQueue(p)) {
|
if (!want_emerge || !emerge->isBlockInQueue(p)) {
|
||||||
nearest_emerged_d = d;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Check occlusion cache first.
|
Check occlusion cache first.
|
||||||
*/
|
*/
|
||||||
@@ -362,6 +358,7 @@ void RemoteClient::GetNextBlocks (
|
|||||||
m_blocks_occ.insert(p);
|
m_blocks_occ.insert(p);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Add inexistent block to emerge queue.
|
Add inexistent block to emerge queue.
|
||||||
|
|||||||
Reference in New Issue
Block a user