Don't print 'Blocks modified by: ' in Map::timerUpdate if no blocks were written
parent
616bad96af
commit
251b015210
|
@ -1463,9 +1463,11 @@ void Map::timerUpdate(float dtime, float unload_timeout,
|
||||||
if(save_before_unloading)
|
if(save_before_unloading)
|
||||||
infostream<<", of which "<<saved_blocks_count<<" were written";
|
infostream<<", of which "<<saved_blocks_count<<" were written";
|
||||||
infostream<<"."<<std::endl;
|
infostream<<"."<<std::endl;
|
||||||
PrintInfo(infostream); // ServerMap/ClientMap:
|
if(saved_blocks_count != 0){
|
||||||
infostream<<"Blocks modified by: "<<std::endl;
|
PrintInfo(infostream); // ServerMap/ClientMap:
|
||||||
modprofiler.print(infostream);
|
infostream<<"Blocks modified by: "<<std::endl;
|
||||||
|
modprofiler.print(infostream);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue