summaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index 8497b74b0..de724659b 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -406,6 +406,12 @@ public:
{
return m_name_id_mapping.getId(name, result);
}
+ virtual content_t getId(const std::string &name) const
+ {
+ content_t id = CONTENT_IGNORE;
+ getId(name, id);
+ return id;
+ }
virtual const ContentFeatures& get(const std::string &name) const
{
content_t id = CONTENT_IGNORE;