aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-18 00:05:00 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:49 +0200
commit4503b03b26b48b546ce3837120f149cd696692a2 (patch)
tree617f64845b81418040ccc0ff16d99a5fce2283e3 /src
parent0e64406b06961fc988cbb34a8eae4db98c7fb8b6 (diff)
downloadminetest-4503b03b26b48b546ce3837120f149cd696692a2.tar.gz
minetest-4503b03b26b48b546ce3837120f149cd696692a2.tar.bz2
minetest-4503b03b26b48b546ce3837120f149cd696692a2.zip
Make added nodes give the corresponding NodeItem as of now (placeholder code)
Diffstat (limited to 'src')
-rw-r--r--src/scriptapi.cpp1
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 */