summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-07-17 14:45:20 +0100
committerGitHub <noreply@github.com>2022-07-17 14:45:20 +0100
commit4648d8f4997963ac050f356b664a07caadd66587 (patch)
tree8df98074ed6c8a434eca662cf1dab095a4163425
parent5cc7329717e138ab4e6aae5182018146039fd0b8 (diff)
downloadminetest-4648d8f4997963ac050f356b664a07caadd66587.tar.gz
minetest-4648d8f4997963ac050f356b664a07caadd66587.tar.bz2
minetest-4648d8f4997963ac050f356b664a07caadd66587.zip
Deprecate loading a world with unresolved dependencies (#12541)
Co-authored-by: sfan5 <sfan5@live.de>
-rw-r--r--src/server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 6ca45f2d3..93767da9d 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -425,9 +425,14 @@ void Server::init()
m_modmgr = std::make_unique<ServerModManager>(m_path_world);
std::vector<ModSpec> unsatisfied_mods = m_modmgr->getUnsatisfiedMods();
+
// complain about mods with unsatisfied dependencies
if (!m_modmgr->isConsistent()) {
m_modmgr->printUnsatisfiedModsError();
+
+ warningstream
+ << "You have unsatisfied dependencies, loading your world anyway. "
+ << "This will become a fatal error in the future." << std::endl;
}
//lock environment