Fixed a bug of server not reloading unloaded blocks when player builds or digs on them.
This commit is contained in:
parent
3909e712a0
commit
39fbf15273
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue