| 302 | } |
| 303 | |
| 304 | ModId MaterialDatabase::modId(String const& modName) const { |
| 305 | if (auto m = m_metaModIndex.maybeRight(modName)) |
| 306 | return *m; |
| 307 | else |
| 308 | return m_modIndex.get(modName); |
| 309 | } |
| 310 | |
| 311 | String const& MaterialDatabase::modName(ModId mod) const { |
| 312 | if (isRealMod(mod)) |
no test coverage detected