mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Bugfix: don't highlight air nodes.
This commit is contained in:
parent
58e6d25e03
commit
86a0f5603b
1 changed files with 36 additions and 34 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue