Skip to content

Commit

Permalink
Textures: Ignore unknown node in override.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker authored and paramat committed Oct 7, 2016
1 parent 0a16e53 commit d4a2e23
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/nodedef.cpp
Expand Up @@ -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];

Expand Down

0 comments on commit d4a2e23

Please sign in to comment.