]> git.lizzy.rs Git - minetest.git/commitdiff
Deprecate loading a world with unresolved dependencies (#12541)
authorrubenwardy <rw@rubenwardy.com>
Sun, 17 Jul 2022 13:45:20 +0000 (14:45 +0100)
committerGitHub <noreply@github.com>
Sun, 17 Jul 2022 13:45:20 +0000 (14:45 +0100)
Co-authored-by: sfan5 <sfan5@live.de>
src/server.cpp

index 6ca45f2d3ebb04de722c6559a5fc7cd6e7d61649..93767da9d1ff1b04340f94b79d88e9567ffd3c05 100644 (file)
@@ -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