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:
d06d7cb
)
Allow digging unknown nodes
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 3 Dec 2011 11:56:39 +0000
(13:56 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 3 Dec 2011 11:56:39 +0000
(13:56 +0200)
src/nodedef.cpp
patch
|
blob
|
history
diff --git
a/src/nodedef.cpp
b/src/nodedef.cpp
index cbb3b6130f236b8b4e936047aeee03eaabc9032d..9f2d4f0af4552dbfc129d58a7f6b74704549a5dc 100644
(file)
--- a/
src/nodedef.cpp
+++ b/
src/nodedef.cpp
@@
-472,6
+472,8
@@
public:
ContentFeatures f;
f.name = name;
f.setAllTextures("unknown_block.png");
+ // Make unknown blocks diggable
+ f.material.diggability = DIGGABLE_NORMAL;
return set(name, f);
}
virtual void updateTextures(ITextureSource *tsrc)