From ccc3af128cb4b6213b8111115c570fe988d3523b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Wed, 6 Jun 2018 12:53:59 +0200 Subject: CSM/SSM: Add on_mods_loaded callback (#7411) * CSM/SSM: Add on_mods_loaded callback --- src/server/mods.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server') diff --git a/src/server/mods.cpp b/src/server/mods.cpp index c246e6446..c5616dcd6 100644 --- a/src/server/mods.cpp +++ b/src/server/mods.cpp @@ -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 -- cgit v1.2.3