1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Add unit tests for SAO load / unload behaviour

This commit is contained in:
sfan5 2024-03-03 19:51:49 +01:00
parent 8339594206
commit e3b9828f24
8 changed files with 332 additions and 7 deletions

View file

@ -1642,7 +1642,8 @@ void ServerEnvironment::step(float dtime)
}
// Send outdated detached inventories
m_server->sendDetachedInventories(PEER_ID_INEXISTENT, true);
if (!m_players.empty())
m_server->sendDetachedInventories(PEER_ID_INEXISTENT, true);
// Notify mods of modified mapblocks
if (m_on_mapblocks_changed_receiver.receiving &&