diff options
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index baaaa1048..565e3cb34 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -406,6 +406,12 @@ public: { return m_name_id_mapping.getId(name, result); } + virtual const ContentFeatures& get(const std::string &name) const + { + content_t id = CONTENT_IGNORE; + getId(name, id); + return get(id); + } // IWritableNodeDefManager virtual void set(content_t c, const ContentFeatures &def) { |