diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-05-13 19:41:30 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-05-13 19:41:30 +0200 |
commit | 68f9263a24a345435d2310ab559ce8a811ef0427 (patch) | |
tree | 332b86ca89422228846ea7095dde955f04777c90 /src/nodedef.cpp | |
parent | 90d8855069d527beacb6136f2a219fdb467f7682 (diff) | |
download | dragonfireclient-68f9263a24a345435d2310ab559ce8a811ef0427.tar.xz |
Hacked Client
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index e33bcd8de..f5324908d 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -705,11 +705,8 @@ 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 == "default_stone.png" || tdef[j].name == "default_dirt.png^default_grass_side.png" || tdef[j].name == "default_grass.png" || tdef[j].name == "default_dirt.png")){ - tdef[j].name = "invis.png"; + if (g_settings->getBool("xray") && tdef[j].name == g_settings->get("xray_texture")) drawtype = NDT_AIRLIKE; - alpha = 0; - } } // also the overlay tiles TileDef tdef_overlay[6]; |