summaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
authoryou <ovvv@web.de>2018-05-20 14:51:50 +0200
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-05-20 14:51:50 +0200
commit22df02d25bb1ddb1de48e645c5256621ce9a9ed9 (patch)
treeb3a8fc33b177ec2af7538e6b4e444b9f7f0f6664 /src/nodedef.cpp
parent6d6b894c7ad7fbd2dcfab25488738149dc0efb06 (diff)
downloadminetest-22df02d25bb1ddb1de48e645c5256621ce9a9ed9.tar.gz
minetest-22df02d25bb1ddb1de48e645c5256621ce9a9ed9.tar.bz2
minetest-22df02d25bb1ddb1de48e645c5256621ce9a9ed9.zip
Fix missing ignore textures (#7326)
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index e40a45f97..c3f2ccd60 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -1228,15 +1228,9 @@ content_t NodeDefManager::set(const std::string &name, const ContentFeatures &de
{
// Pre-conditions
assert(name != "");
+ assert(name != "ignore");
assert(name == def.name);
- // Don't allow redefining ignore (but allow air and unknown)
- if (name == "ignore") {
- warningstream << "NodeDefManager: Ignoring "
- "CONTENT_IGNORE redefinition"<<std::endl;
- return CONTENT_IGNORE;
- }
-
content_t id = CONTENT_IGNORE;
if (!m_name_id_mapping.getId(name, id)) { // ignore aliases
// Get new id