summaryrefslogtreecommitdiff
path: root/src/serverenvironment.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-07-18 08:23:37 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-07-18 08:23:37 +0200
commita8c405b04ea1be927d8ebc753ce7ccb46cfdd4f9 (patch)
treef12ae62c4a77854024e75f157cd77ee3d9c840dc /src/serverenvironment.h
parent14a1a712de801ac11fd6203d6169abc194eab5b3 (diff)
downloadminetest-a8c405b04ea1be927d8ebc753ce7ccb46cfdd4f9.tar.gz
minetest-a8c405b04ea1be927d8ebc753ce7ccb46cfdd4f9.tar.bz2
minetest-a8c405b04ea1be927d8ebc753ce7ccb46cfdd4f9.zip
LBM content mapping map doesn't need to be ordered, use std::unordered_map
Also rename helper to lbm_map instead of container_map
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r--src/serverenvironment.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h
index 48eb5b318..4cfe7f7d6 100644
--- a/src/serverenvironment.h
+++ b/src/serverenvironment.h
@@ -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;