diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-18 00:05:00 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:49 +0200 |
commit | 4503b03b26b48b546ce3837120f149cd696692a2 (patch) | |
tree | 617f64845b81418040ccc0ff16d99a5fce2283e3 | |
parent | 0e64406b06961fc988cbb34a8eae4db98c7fb8b6 (diff) | |
download | minetest-4503b03b26b48b546ce3837120f149cd696692a2.tar.gz minetest-4503b03b26b48b546ce3837120f149cd696692a2.tar.bz2 minetest-4503b03b26b48b546ce3837120f149cd696692a2.zip |
Make added nodes give the corresponding NodeItem as of now (placeholder code)
-rw-r--r-- | src/scriptapi.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index d25df18cb..a18c144d3 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -352,6 +352,7 @@ static int l_register_node(lua_State *L) f.material.crackiness = 0; f.material.crumbliness = 0; f.material.cuttability = 0; + f.dug_item = std::string("NodeItem \"")+name+"\" 1"; nodedef->set(name, f); return 0; /* number of results */ |