diff options
author | sfan5 <sfan5@live.de> | 2022-05-26 22:22:48 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-29 14:00:19 +0200 |
commit | c1d03695d4859ff4a531c31b6bddcd8f50384c41 (patch) | |
tree | e8a8b88a3089adbda8897969cd596f413f275f8c /src/serverenvironment.h | |
parent | ea74680df4340172674adfc3335e6ba887c3f79e (diff) | |
download | minetest-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.h | 6 |
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; }; |