diff options
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/map.cpp b/src/map.cpp index 7d5bd700d..d27c6da12 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -994,11 +994,10 @@ void Map::addNodeAndUpdate(v3s16 p, MapNode n, /* Add intial metadata */ - - NodeMetadata *meta_proto = nodemgr->get(n).initial_metadata; - if(meta_proto) - { - NodeMetadata *meta = meta_proto->clone(m_gamedef); + + std::string metadata_name = nodemgr->get(n).metadata_name; + if(metadata_name != ""){ + NodeMetadata *meta = NodeMetadata::create(metadata_name, m_gamedef); meta->setOwner(player_name); setNodeMetadata(p, meta); } |