mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Fixed a bug of server not reloading unloaded blocks when player builds or digs on them.
This commit is contained in:
@@ -1966,8 +1966,11 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||||||
}
|
}
|
||||||
catch(InvalidPositionException &e)
|
catch(InvalidPositionException &e)
|
||||||
{
|
{
|
||||||
derr_server<<"Server: Not finishing digging: Node not found"
|
derr_server<<"Server: Not finishing digging: Node not found."
|
||||||
|
<<" Adding block to emerge queue."
|
||||||
<<std::endl;
|
<<std::endl;
|
||||||
|
m_emerge_queue.addBlock(peer_id,
|
||||||
|
getNodeBlockPos(p_over), BLOCK_EMERGE_FLAG_FROMDISK);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2117,7 +2120,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||||||
catch(InvalidPositionException &e)
|
catch(InvalidPositionException &e)
|
||||||
{
|
{
|
||||||
derr_server<<"Server: Ignoring ADDNODE: Node not found"
|
derr_server<<"Server: Ignoring ADDNODE: Node not found"
|
||||||
|
<<" Adding block to emerge queue."
|
||||||
<<std::endl;
|
<<std::endl;
|
||||||
|
m_emerge_queue.addBlock(peer_id,
|
||||||
|
getNodeBlockPos(p_over), BLOCK_EMERGE_FLAG_FROMDISK);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user