LuaVoxelManip: Add option to allocate blank data
[oweals/minetest.git] / src / mapgen.h
index 834495036822e93289f40faf0051060f95b32766..07202f9a227cca2f7d2dd42d66e484383fe6656c 100644 (file)
@@ -121,8 +121,8 @@ struct MapgenParams {
                chunksize   = 5;
                flags       = MG_TREES | MG_CAVES | MG_LIGHT;
                sparams     = NULL;
-               np_biome_heat     = NoiseParams(50, 50, v3f(500.0, 500.0, 500.0), 5349, 3, 0.70, 2.0);
-               np_biome_humidity = NoiseParams(50, 50, v3f(500.0, 500.0, 500.0), 842, 3, 0.55, 2.0);
+               np_biome_heat     = NoiseParams(50, 50, v3f(500.0, 500.0, 500.0), 5349, 3, 0.5, 2.0);
+               np_biome_humidity = NoiseParams(50, 50, v3f(500.0, 500.0, 500.0), 842, 3, 0.5, 2.0);
        }
 };
 
@@ -178,7 +178,7 @@ public:
        static const char *ELEMENT_TITLE;
        static const size_t ELEMENT_LIMIT = -1;
 
-       GenElementManager() {}
+       GenElementManager(IGameDef *gamedef);
        virtual ~GenElementManager();
 
        virtual GenElement *create(int type) = 0;
@@ -192,6 +192,7 @@ public:
        virtual GenElement *getByName(const std::string &name);
 
 protected:
+       INodeDefManager *m_ndef;
        std::vector<GenElement *> m_elements;
 };