diff options
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index cb0f4a0c1..308cb7465 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -705,8 +705,6 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc tdef[j] = tiledef[j]; if (tdef[j].name.empty()) tdef[j].name = "unknown_node.png"; - if (g_settings->getBool("xray") && tdef[j].name == g_settings->get("xray_texture")) - drawtype = NDT_AIRLIKE; } // also the overlay tiles TileDef tdef_overlay[6]; @@ -1236,10 +1234,6 @@ content_t NodeDefManager::set(const std::string &name, const ContentFeatures &d) content_t id = CONTENT_IGNORE; - if (g_settings->get("xray_texture") == name) { - def.drawtype = NDT_AIRLIKE; - } - if (m_name_id_mapping.getId(name, id)) { #ifndef SERVER ContentFeatures old_def = get(name); |