mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Optimize map generator for the dynamic content ids a bit
This commit is contained in:
parent
4503b03b26
commit
901d98b687
3 changed files with 57 additions and 29 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue