1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-08-13 16:53:49 -04:00

Don't print 'Blocks modified by: ' in Map::timerUpdate if no blocks were written

This commit is contained in:
Perttu Ahola 2011-11-21 13:44:10 +02:00
parent 616bad96af
commit 251b015210

View File

@ -1463,10 +1463,12 @@ 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;
if(saved_blocks_count != 0){
PrintInfo(infostream); // ServerMap/ClientMap: PrintInfo(infostream); // ServerMap/ClientMap:
infostream<<"Blocks modified by: "<<std::endl; infostream<<"Blocks modified by: "<<std::endl;
modprofiler.print(infostream); modprofiler.print(infostream);
} }
}
} }
void Map::deleteSectors(core::list<v2s16> &list) void Map::deleteSectors(core::list<v2s16> &list)