aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2016-12-05 19:59:15 +0000
committerparamat <mat.gregory@virginmedia.com>2016-12-20 06:34:04 +0000
commit59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac (patch)
treed5717ed5f89542bcc26b4291ba193b2890763b01 /src/server.h
parent24edfb77afbb631cb83d26a095b609850f997e5c (diff)
downloadminetest-59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac.tar.gz
minetest-59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac.tar.bz2
minetest-59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac.zip
Mod security: Allow read-only access to all mod paths
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h
index cc2bcef25..4425d139b 100644
--- a/src/server.h
+++ b/src/server.h
@@ -298,6 +298,7 @@ public:
IWritableNodeDefManager* getWritableNodeDefManager();
IWritableCraftDefManager* getWritableCraftDefManager();
+ const std::vector<ModSpec> &getMods() const { return m_mods; }
const ModSpec* getModSpec(const std::string &modname) const;
void getModNames(std::vector<std::string> &modlist);
std::string getBuiltinLuaPath();