mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 18:05:22 +02:00
Fix item and wield meshes (#6596)
This commit is contained in:
@@ -725,7 +725,7 @@ void MapblockMeshGenerator::drawGlasslikeFramedNode()
|
||||
v3s16 n2p = blockpos_nodes + p + g_26dirs[i];
|
||||
MapNode n2 = data->m_vmanip.getNodeNoEx(n2p);
|
||||
content_t n2c = n2.getContent();
|
||||
if (n2c == current || n2c == CONTENT_IGNORE)
|
||||
if (n2c == current)
|
||||
nb[i] = 1;
|
||||
}
|
||||
}
|
||||
@@ -1363,3 +1363,11 @@ void MapblockMeshGenerator::generate()
|
||||
drawNode();
|
||||
}
|
||||
}
|
||||
|
||||
void MapblockMeshGenerator::renderSingle(content_t node)
|
||||
{
|
||||
p = {0, 0, 0};
|
||||
n = MapNode(node, 0xff, 0x00);
|
||||
f = &nodedef->get(n);
|
||||
drawNode();
|
||||
}
|
||||
|
Reference in New Issue
Block a user