diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-07-24 20:58:08 +0200 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-07-24 20:58:08 +0200 |
commit | 8979a3dd99fad05582d7308097e326b126ef0da6 (patch) | |
tree | 2b4cccb898253d9b30d340fdc3e48186838e19b5 | |
parent | 3bf05f020c4ed7b89ab4eb36dde9dc96c4f6811a (diff) | |
download | minetest-8979a3dd99fad05582d7308097e326b126ef0da6.tar.gz minetest-8979a3dd99fad05582d7308097e326b126ef0da6.tar.bz2 minetest-8979a3dd99fad05582d7308097e326b126ef0da6.zip |
Dont display interior of glasslike_framed node when its not defined.
Fixes https://github.com/minetest/minetest/issues/1514
-rw-r--r-- | src/content_mapblock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp index 7708d0e76..f5b49c662 100644 --- a/src/content_mapblock.cpp +++ b/src/content_mapblock.cpp @@ -946,7 +946,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data, makeCuboid(&collector, box, &glass_tiles[i], 1, c, txc2); } - if (param2 > 0){ + if (param2 > 0 && f.special_tiles[0].texture) { // Interior volume level is in range 0 .. 63, // convert it to -0.5 .. 0.5 float vlev = (((float)param2 / 63.0 ) * 2.0 - 1.0); |