diff options
Diffstat (limited to 'src/mapgen.cpp')
-rw-r--r-- | src/mapgen.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 880ea1eea..ceaabbb1a 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "mapgen.h" #include "voxel.h" #include "noise.h" +#include "gamedef.h" #include "mg_biome.h" #include "mapblock.h" #include "mapnode.h" @@ -381,6 +382,12 @@ void GenerateNotifier::getEvents( /////////////////////////////////////////////////////////////////////////////// +GenElementManager::GenElementManager(IGameDef *gamedef) +{ + m_resolver = gamedef->getNodeDefManager()->getResolver(); +} + + GenElementManager::~GenElementManager() { for (size_t i = 0; i != m_elements.size(); i++) |