diff options
author | DS <ds.desour@proton.me> | 2023-03-24 12:34:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-24 12:34:44 +0100 |
commit | ed632f38547e2a63edb1a5dacbc37f3441cc43b6 (patch) | |
tree | adcec37379068ca4a34a3129d2fd66d74558efa1 /src/server.cpp | |
parent | f3b198e49008ea3aba568974c8f423fdc801d4a2 (diff) | |
download | minetest-ed632f38547e2a63edb1a5dacbc37f3441cc43b6.tar.xz |
Safely handle block deletion (#13315)
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index 1ee623fa0..197e76e16 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -667,6 +667,11 @@ void Server::AsyncRunStep(bool initial_step) } /* + Note: Orphan MapBlock ptrs become dangling after this call. + */ + m_env->getServerMap().step(); + + /* Listen to the admin chat, if available */ if (m_admin_chat) { |