mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Make added nodes give the corresponding NodeItem as of now (placeholder code)
This commit is contained in:
@@ -352,6 +352,7 @@ static int l_register_node(lua_State *L)
|
|||||||
f.material.crackiness = 0;
|
f.material.crackiness = 0;
|
||||||
f.material.crumbliness = 0;
|
f.material.crumbliness = 0;
|
||||||
f.material.cuttability = 0;
|
f.material.cuttability = 0;
|
||||||
|
f.dug_item = std::string("NodeItem \"")+name+"\" 1";
|
||||||
|
|
||||||
nodedef->set(name, f);
|
nodedef->set(name, f);
|
||||||
return 0; /* number of results */
|
return 0; /* number of results */
|
||||||
|
Reference in New Issue
Block a user