LBM content mapping map doesn't need to be ordered, use std::unordered_map
[oweals/minetest.git] / src / serverenvironment.h
index 48eb5b3185da29ba4a66a34b5d82c964868f03ce..4cfe7f7d646ee44404e454313500f0e28a694852 100644 (file)
@@ -88,8 +88,8 @@ struct LoadingBlockModifierDef
 
 struct LBMContentMapping
 {
-       typedef std::map<content_t, std::vector<LoadingBlockModifierDef *> > container_map;
-       container_map map;
+       typedef std::unordered_map<content_t, std::vector<LoadingBlockModifierDef *>> lbm_map;
+       lbm_map map;
 
        std::vector<LoadingBlockModifierDef *> lbm_list;