summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2018-06-06 12:53:59 +0200
committerGitHub <noreply@github.com>2018-06-06 12:53:59 +0200
commitccc3af128cb4b6213b8111115c570fe988d3523b (patch)
tree38a2f8cb43018759ca234ef1de62a43ff5049704 /src/server
parenta2de439a91df6876e13230696c05957a9da8b2ce (diff)
downloadminetest-ccc3af128cb4b6213b8111115c570fe988d3523b.tar.gz
minetest-ccc3af128cb4b6213b8111115c570fe988d3523b.tar.bz2
minetest-ccc3af128cb4b6213b8111115c570fe988d3523b.zip
CSM/SSM: Add on_mods_loaded callback (#7411)
* CSM/SSM: Add on_mods_loaded callback
Diffstat (limited to 'src/server')
-rw-r--r--src/server/mods.cpp3
1 files changed, 3 insertions, 0 deletions
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