mirror of
https://github.com/luanti-org/luanti.git
synced 2026-01-13 04:35:28 +01:00
Safely handle block deletion (#13315)
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
This commit is contained in:
@@ -666,6 +666,11 @@ void Server::AsyncRunStep(bool initial_step)
|
||||
-1);
|
||||
}
|
||||
|
||||
/*
|
||||
Note: Orphan MapBlock ptrs become dangling after this call.
|
||||
*/
|
||||
m_env->getServerMap().step();
|
||||
|
||||
/*
|
||||
Listen to the admin chat, if available
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user