aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-29 00:28:48 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-29 00:28:48 +0300
commit02c035c548787a589c2bb813112b080a638e2972 (patch)
tree66ae02a8c29b5396bc86392e004c39ccc671b434 /src/server.cpp
parent418041d9067319431e4b6301851da117d2f4075b (diff)
downloadminetest-02c035c548787a589c2bb813112b080a638e2972.tar.gz
minetest-02c035c548787a589c2bb813112b080a638e2972.tar.bz2
minetest-02c035c548787a589c2bb813112b080a638e2972.zip
Reduce EnvRef:set_node() time tenfold by postponing the dayNightDiff update until it is actually needed
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index ff250596d..3aa0bd04b 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -659,7 +659,7 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
*/
if(d >= 4)
{
- if(block->dayNightDiffed() == false)
+ if(block->getDayNightDiff() == false)
continue;
}
#endif