From: SmallJoker Date: Sun, 17 Jul 2016 20:26:23 +0000 (+0200) Subject: Textures: Ignore unknown node in override.txt X-Git-Tag: 0.4.15~199 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d4a2e23793d2260f263396480b6552a37c8ebf6b;p=oweals%2Fminetest.git Textures: Ignore unknown node in override.txt --- diff --git a/src/nodedef.cpp b/src/nodedef.cpp index bfb2999bd..fa2e621f2 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -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];