1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add node definitions in Lua and do not use content_mapnode_init anymore (except in test.cpp)

This commit is contained in:
Kahrl 2011-11-26 00:09:36 +02:00 committed by Perttu Ahola
parent 1f53ca5f4c
commit c1479a2732
9 changed files with 452 additions and 40 deletions

View file

@ -2222,8 +2222,7 @@ void make_block(BlockMakeData *data)
{
u32 i = data->vmanip->m_area.index(p);
MapNode *n = &data->vmanip->m_data[i];
if(data->nodedef->get(*n).is_ground_content
|| n->getContent() == LEGN(ndef, "CONTENT_JUNGLETREE"))
if(data->nodedef->get(*n).is_ground_content)
{
found = true;
break;