forked from Mirrorlandia_minetest/minetest
Don't expire blocks visible to the client. (#13255)
This commit is contained in:
parent
2083252c05
commit
fe3ea090d1
@ -294,12 +294,6 @@ void RemoteClient::GetNextBlocks (
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
Don't send already sent blocks
|
|
||||||
*/
|
|
||||||
if (m_blocks_sent.find(p) != m_blocks_sent.end())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Check if map has this block
|
Check if map has this block
|
||||||
*/
|
*/
|
||||||
@ -310,6 +304,12 @@ void RemoteClient::GetNextBlocks (
|
|||||||
// Reset usage timer, this block will be of use in the future.
|
// Reset usage timer, this block will be of use in the future.
|
||||||
block->resetUsageTimer();
|
block->resetUsageTimer();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Don't send already sent blocks
|
||||||
|
*/
|
||||||
|
if (m_blocks_sent.find(p) != m_blocks_sent.end())
|
||||||
|
continue;
|
||||||
|
|
||||||
// Check whether the block exists (with data)
|
// Check whether the block exists (with data)
|
||||||
if (!block->isGenerated())
|
if (!block->isGenerated())
|
||||||
block_not_found = true;
|
block_not_found = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user