1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 23:05:07 -05:00

Dont display interior of glasslike_framed node when its not defined.

Fixes https://github.com/minetest/minetest/issues/1514
This commit is contained in:
RealBadAngel 2014-07-24 20:58:08 +02:00
parent 3bf05f020c
commit 8979a3dd99

View File

@ -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);