diff options
author | paramat <paramat@users.noreply.github.com> | 2018-03-02 13:39:39 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2018-03-03 22:59:49 +0000 |
commit | 07622bf9b49830aae2a5e12b5616471da6a8b19a (patch) | |
tree | a2319dd495e14a32e721fc696302ca4ce2a00815 /src/emerge.cpp | |
parent | b952d42000a4038cd759a7829286a33fa91391d3 (diff) | |
download | minetest-07622bf9b49830aae2a5e12b5616471da6a8b19a.tar.gz minetest-07622bf9b49830aae2a5e12b5616471da6a8b19a.tar.bz2 minetest-07622bf9b49830aae2a5e12b5616471da6a8b19a.zip |
Generate Notifier: Clear events once after all 'on generated' functions
Diffstat (limited to 'src/emerge.cpp')
-rw-r--r-- | src/emerge.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emerge.cpp b/src/emerge.cpp index ffe387f63..277841053 100644 --- a/src/emerge.cpp +++ b/src/emerge.cpp @@ -585,6 +585,12 @@ MapBlock *EmergeThread::finishGen(v3s16 pos, BlockMakeData *bmdata, m_server->setAsyncFatalError("Lua: finishGen" + std::string(e.what())); } + /* + Clear generate notifier events + */ + Mapgen *mg = m_emerge->getCurrentMapgen(); + mg->gennotify.clearEvents(); + EMERGE_DBG_OUT("ended up with: " << analyze_block(block)); /* |