diff options
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index c9881567d..49fdabd67 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -234,6 +234,11 @@ void * EmergeThread::Thread() if(enable_mapgen_debug_info) infostream<<"EmergeThread: generating"<<std::endl; block = map.generateBlock(p, modified_blocks); + + v3s16 minp = block->getPos()*MAP_BLOCKSIZE; + v3s16 maxp = minp + v3s16(1,1,1)*(MAP_BLOCKSIZE-1); + scriptapi_environment_on_generated(m_server->m_lua, + minp, maxp); } } |