aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2012-01-22 00:53:21 +0100
committerPerttu Ahola <celeron55@gmail.com>2012-01-22 17:31:20 +0200
commit02b334a679f455483c88f381a616065cb3984003 (patch)
treedeec457f70e18dead589c30502c8d66b6e3f1606 /src
parentb4dd5d3bd7d2152fdf02e0e7422b1305caf151f2 (diff)
downloadminetest-02b334a679f455483c88f381a616065cb3984003.tar.gz
minetest-02b334a679f455483c88f381a616065cb3984003.tar.bz2
minetest-02b334a679f455483c88f381a616065cb3984003.zip
Create node metadata when placing nodes again
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 31c0c958b..c245242e8 100644
--- 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);
}
}