projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e64406
)
Make added nodes give the corresponding NodeItem as of now (placeholder code)
author
Perttu Ahola
<celeron55@gmail.com>
Thu, 17 Nov 2011 22:05:00 +0000
(
00:05
+0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:49 +0000
(19:13 +0200)
src/scriptapi.cpp
patch
|
blob
|
history
diff --git
a/src/scriptapi.cpp
b/src/scriptapi.cpp
index d25df18cbd061487e44c9e037b99d574942266db..a18c144d3b8837e6cfc802ab2c9db4898725cc73 100644
(file)
--- 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 */