aboutsummaryrefslogtreecommitdiff
path: root/src/serverenvironment.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-05-26 22:22:48 +0200
committersfan5 <sfan5@live.de>2022-05-29 14:00:19 +0200
commitc1d03695d4859ff4a531c31b6bddcd8f50384c41 (patch)
treee8a8b88a3089adbda8897969cd596f413f275f8c /src/serverenvironment.h
parentea74680df4340172674adfc3335e6ba887c3f79e (diff)
downloadminetest-c1d03695d4859ff4a531c31b6bddcd8f50384c41.tar.gz
minetest-c1d03695d4859ff4a531c31b6bddcd8f50384c41.tar.bz2
minetest-c1d03695d4859ff4a531c31b6bddcd8f50384c41.zip
Minor code improvements around active block keeping
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r--src/serverenvironment.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h
index 223cd3420..00184421e 100644
--- a/src/serverenvironment.h
+++ b/src/serverenvironment.h
@@ -180,8 +180,14 @@ public:
m_list.clear();
}
+ void remove(v3s16 p) {
+ m_list.erase(p);
+ m_abm_list.erase(p);
+ }
+
std::set<v3s16> m_list;
std::set<v3s16> m_abm_list;
+ // list of blocks that are always active, not modified by this class
std::set<v3s16> m_forceloaded_list;
};