diff options
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h index b90971200..847642be9 100644 --- a/src/server.h +++ b/src/server.h @@ -61,6 +61,7 @@ class ServerEnvironment; struct SimpleSoundSpec; struct CloudParams; class ServerThread; +class ServerModManager; enum ClientDeletionReason { CDR_LEAVE, @@ -268,7 +269,7 @@ public: NodeDefManager* getWritableNodeDefManager(); IWritableCraftDefManager* getWritableCraftDefManager(); - virtual const std::vector<ModSpec> &getMods() const { return m_mods; } + virtual const std::vector<ModSpec> &getMods() const; virtual const ModSpec* getModSpec(const std::string &modname) const; void getModNames(std::vector<std::string> &modlist); std::string getBuiltinLuaPath(); @@ -541,6 +542,7 @@ private: EventManager *m_event; // Mods + std::unique_ptr<ServerModManager> m_modmgr; std::vector<ModSpec> m_mods; /* |