mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Reduce EnvRef:set_node() time tenfold by postponing the dayNightDiff update until it is actually needed
This commit is contained in:
@@ -659,7 +659,7 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
|
||||
*/
|
||||
if(d >= 4)
|
||||
{
|
||||
if(block->dayNightDiffed() == false)
|
||||
if(block->getDayNightDiff() == false)
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user