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:
b4dd5d3
)
Create node metadata when placing nodes again
author
Kahrl
<kahrl@gmx.net>
Sat, 21 Jan 2012 23:53:21 +0000
(
00:53
+0100)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 22 Jan 2012 15:31:20 +0000
(17:31 +0200)
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index 31c0c958b955346be7dbe0ab62cee91f454497f4..c245242e8ec1358389a1e5da9b731bb4e1caf19c 100644
(file)
--- a/
src/map.cpp
+++ b/
src/map.cpp
@@
-1010,6
+1010,8
@@
void Map::addNodeAndUpdate(v3s16 p, MapNode n,
if(!meta){
errorstream<<"Failed to create node metadata \""
<<metadata_name<<"\""<<std::endl;
+ } else {
+ setNodeMetadata(p, meta);
}
}