mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-17 17:08:39 +00:00
CSM/SSM: Add on_mods_loaded callback (#7411)
* CSM/SSM: Add on_mods_loaded callback
This commit is contained in:
parent
a2de439a91
commit
ccc3af128c
12 changed files with 50 additions and 0 deletions
|
@ -75,6 +75,9 @@ void ServerModManager::loadMods(ServerScripting *script)
|
|||
std::chrono::steady_clock::now() - t).count() * 0.001f
|
||||
<< " seconds" << std::endl;
|
||||
}
|
||||
|
||||
// Run a callback when mods are loaded
|
||||
script->on_mods_loaded();
|
||||
}
|
||||
|
||||
// clang-format on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue