From 02c035c548787a589c2bb813112b080a638e2972 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 29 Mar 2012 00:28:48 +0300 Subject: Reduce EnvRef:set_node() time tenfold by postponing the dayNightDiff update until it is actually needed --- src/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server.cpp') 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 -- cgit v1.2.3