1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Decoration, Ore: Resolve node names on Mapgen init

This commit is contained in:
kwolekr
2013-06-17 18:51:29 -04:00
parent 56093b6614
commit 0b20768a24
2 changed files with 5 additions and 5 deletions

View File

@@ -123,9 +123,13 @@ void EmergeManager::initMapgens(MapgenParams *mgparams) {
return;
biomedef->resolveNodeNames(ndef);
for (size_t i = 0; i != ores.size(); i++)
ores[i]->resolveNodeNames(ndef);
for (size_t i = 0; i != decorations.size(); i++)
decorations[i]->resolveNodeNames(ndef);
this->params = mgparams;
for (unsigned int i = 0; i != emergethread.size(); i++) {
for (size_t i = 0; i != emergethread.size(); i++) {
mg = createMapgen(params->mg_name, 0, params);
if (!mg) {
infostream << "EmergeManager: falling back to mapgen v6" << std::endl;