aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-25 09:29:59 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-25 09:29:59 +0200
commit39fbf1527308993cea7e0d2235ee1687e80d9755 (patch)
treed09f1b1bef6a852cf08904ce55a58a8d25a48906 /src
parent3909e712a012c11793effc408fd348e438a9ac5b (diff)
downloadminetest-39fbf1527308993cea7e0d2235ee1687e80d9755.tar.gz
minetest-39fbf1527308993cea7e0d2235ee1687e80d9755.tar.bz2
minetest-39fbf1527308993cea7e0d2235ee1687e80d9755.zip
Fixed a bug of server not reloading unloaded blocks when player builds or digs on them.
Diffstat (limited to 'src')
-rw-r--r--src/server.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 716ff77c6..505e9730f 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1966,8 +1966,11 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
}
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;
+ m_emerge_queue.addBlock(peer_id,
+ getNodeBlockPos(p_over), BLOCK_EMERGE_FLAG_FROMDISK);
return;
}
@@ -2117,7 +2120,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
catch(InvalidPositionException &e)
{
derr_server<<"Server: Ignoring ADDNODE: Node not found"
+ <<" Adding block to emerge queue."
<<std::endl;
+ m_emerge_queue.addBlock(peer_id,
+ getNodeBlockPos(p_over), BLOCK_EMERGE_FLAG_FROMDISK);
return;
}