mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Do not expose CONTENT_* stuff in content_mapnode.h and use a name converter wrapper in old code
This commit is contained in:
parent
c0f6395cf0
commit
df8346ef4d
14 changed files with 447 additions and 377 deletions
|
@ -229,7 +229,7 @@ struct TestMapNode
|
|||
// Transparency
|
||||
n.setContent(CONTENT_AIR);
|
||||
assert(nodedef->get(n).light_propagates == true);
|
||||
n.setContent(CONTENT_STONE);
|
||||
n.setContent(LEGN(nodedef, "CONTENT_STONE"));
|
||||
assert(nodedef->get(n).light_propagates == false);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue