Bugfix: don't highlight air nodes.
parent
58e6d25e03
commit
86a0f5603b
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue