bool Map::addNodeWithEvent(v3s16 p, MapNode n)
{
- ScopeProfiler sp(g_profiler, "Map::addNodeWithEvent", SPT_AVG);
MapEditEvent event;
event.type = MEET_ADDNODE;
event.p = p;
TimeTaker timer("on_generated");
scriptapi_environment_on_generated(m_server->m_lua,
minp, maxp, mapgen::get_blockseed(data.seed, minp));
- int t = timer.stop(true);
- dstream<<"on_generated took "<<t<<"ms"<<std::endl;
+ /*int t = timer.stop(true);
+ dstream<<"on_generated took "<<t<<"ms"<<std::endl;*/
}
if(enable_mapgen_debug_info)