mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Don't print 'Blocks modified by: ' in Map::timerUpdate if no blocks were written
This commit is contained in:
parent
616bad96af
commit
251b015210
1 changed files with 5 additions and 3 deletions
|
@ -1463,9 +1463,11 @@ void Map::timerUpdate(float dtime, float unload_timeout,
|
|||
if(save_before_unloading)
|
||||
infostream<<", of which "<<saved_blocks_count<<" were written";
|
||||
infostream<<"."<<std::endl;
|
||||
PrintInfo(infostream); // ServerMap/ClientMap:
|
||||
infostream<<"Blocks modified by: "<<std::endl;
|
||||
modprofiler.print(infostream);
|
||||
if(saved_blocks_count != 0){
|
||||
PrintInfo(infostream); // ServerMap/ClientMap:
|
||||
infostream<<"Blocks modified by: "<<std::endl;
|
||||
modprofiler.print(infostream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue