Textures: Ignore unknown node in override.txt

This commit is contained in:
SmallJoker 2016-07-17 22:26:23 +02:00 committed by paramat
parent 0a16e53b40
commit d4a2e23793
1 changed files with 2 additions and 7 deletions

View File

@ -1144,13 +1144,8 @@ void CNodeDefManager::applyTextureOverrides(const std::string &override_filepath
}
content_t id;
if (!getId(splitted[0], id)) {
infostream << override_filepath
<< ":" << line_c << " Could not apply texture override \""
<< line << "\": Unknown node \""
<< splitted[0] << "\"" << std::endl;
continue;
}
if (!getId(splitted[0], id))
continue; // Ignore unknown node
ContentFeatures &nodedef = m_content_features[id];