mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Optimize map generator for the dynamic content ids a bit
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user