Create node metadata when placing nodes again
authorKahrl <kahrl@gmx.net>
Sat, 21 Jan 2012 23:53:21 +0000 (00:53 +0100)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 22 Jan 2012 15:31:20 +0000 (17:31 +0200)
src/map.cpp

index 31c0c958b955346be7dbe0ab62cee91f454497f4..c245242e8ec1358389a1e5da9b731bb4e1caf19c 100644 (file)
@@ -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);
                }
        }