mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 15:42:24 +01:00
Update mapgen params in ServerMap after Mapgen init
This commit is contained in:
parent
15c316765d
commit
7a4c1e7327
@ -496,6 +496,7 @@ public:
|
|||||||
u64 getSeed(){ return m_seed; }
|
u64 getSeed(){ return m_seed; }
|
||||||
|
|
||||||
MapgenParams *getMapgenParams(){ return m_mgparams; }
|
MapgenParams *getMapgenParams(){ return m_mgparams; }
|
||||||
|
void setMapgenParams(MapgenParams *mgparams){ m_mgparams = mgparams; }
|
||||||
|
|
||||||
// Parameters fed to the Mapgen
|
// Parameters fed to the Mapgen
|
||||||
MapgenParams *m_mgparams;
|
MapgenParams *m_mgparams;
|
||||||
|
@ -823,6 +823,7 @@ Server::Server(
|
|||||||
|
|
||||||
// Initialize mapgens
|
// Initialize mapgens
|
||||||
m_emerge->initMapgens(mgparams);
|
m_emerge->initMapgens(mgparams);
|
||||||
|
servermap->setMapgenParams(m_emerge->params);
|
||||||
|
|
||||||
// Give environment reference to scripting api
|
// Give environment reference to scripting api
|
||||||
m_script->initializeEnvironment(m_env);
|
m_script->initializeEnvironment(m_env);
|
||||||
|
Loading…
Reference in New Issue
Block a user