Fixed a bug of server not reloading unloaded blocks when player builds or digs on them.

This commit is contained in:
Perttu Ahola 2011-01-25 09:29:59 +02:00
parent 3909e712a0
commit 39fbf15273
1 changed files with 7 additions and 1 deletions

View File

@ -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;
} }