1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-20 03:35:18 +02:00

CSM/SSM: Add on_mods_loaded callback (#7411)

* CSM/SSM: Add on_mods_loaded callback
This commit is contained in:
Loïc Blot
2018-06-06 12:53:59 +02:00
committed by GitHub
parent a2de439a91
commit ccc3af128c
12 changed files with 50 additions and 0 deletions

View File

@@ -172,6 +172,8 @@ void Client::loadMods()
for (const ModSpec &mod : m_mods)
m_script->loadModFromMemory(mod.name);
// Run a callback when mods are loaded
m_script->on_mods_loaded();
m_mods_loaded = true;
}