diff options
author | Kahrl <kahrl@gmx.net> | 2012-01-22 00:53:21 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-22 17:31:20 +0200 |
commit | 02b334a679f455483c88f381a616065cb3984003 (patch) | |
tree | deec457f70e18dead589c30502c8d66b6e3f1606 /src | |
parent | b4dd5d3bd7d2152fdf02e0e7422b1305caf151f2 (diff) | |
download | minetest-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.cpp | 2 |
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); } } |