Bugfix: don't highlight air nodes.

master
RealBadAngel 2014-09-18 09:56:27 +02:00
parent 58e6d25e03
commit 86a0f5603b
1 changed files with 36 additions and 34 deletions

View File

@ -193,6 +193,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
(p.Z >= 0) & (p.Z < MAP_BLOCKSIZE)) {
MapNode n = data->m_vmanip.getNodeNoEx(blockpos_nodes + p);
if(n.getContent() != CONTENT_AIR) {
// Get selection mesh light level
static const v3s16 dirs[7] = {
v3s16( 0, 0, 0),
@ -230,6 +231,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
makeCuboid(&collector, box, &h_tile, 1, c, NULL);
}
}
}
for(s16 z = 0; z < MAP_BLOCKSIZE; z++)
for(s16 y = 0; y < MAP_BLOCKSIZE; y++)