mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Bugfix: don't highlight air nodes.
This commit is contained in:
@@ -193,6 +193,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||||||
(p.Z >= 0) & (p.Z < MAP_BLOCKSIZE)) {
|
(p.Z >= 0) & (p.Z < MAP_BLOCKSIZE)) {
|
||||||
|
|
||||||
MapNode n = data->m_vmanip.getNodeNoEx(blockpos_nodes + p);
|
MapNode n = data->m_vmanip.getNodeNoEx(blockpos_nodes + p);
|
||||||
|
if(n.getContent() != CONTENT_AIR) {
|
||||||
// Get selection mesh light level
|
// Get selection mesh light level
|
||||||
static const v3s16 dirs[7] = {
|
static const v3s16 dirs[7] = {
|
||||||
v3s16( 0, 0, 0),
|
v3s16( 0, 0, 0),
|
||||||
@@ -230,6 +231,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||||||
makeCuboid(&collector, box, &h_tile, 1, c, NULL);
|
makeCuboid(&collector, box, &h_tile, 1, c, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for(s16 z = 0; z < MAP_BLOCKSIZE; z++)
|
for(s16 z = 0; z < MAP_BLOCKSIZE; z++)
|
||||||
for(s16 y = 0; y < MAP_BLOCKSIZE; y++)
|
for(s16 y = 0; y < MAP_BLOCKSIZE; y++)
|
||||||
|
Reference in New Issue
Block a user