aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-04-08 22:44:37 +0200
committerest31 <MTest31@outlook.com>2015-04-08 23:05:26 +0200
commit0a413265cb7057b5303733dd32cf802a9ecf6105 (patch)
tree21ade34f3b2ff49dd1fa7e0693d041d5cb59038e /src/script
parentc758fd73ff0b95ca27f833f8aefd0345edd71fcc (diff)
downloadminetest-0a413265cb7057b5303733dd32cf802a9ecf6105.tar.gz
minetest-0a413265cb7057b5303733dd32cf802a9ecf6105.tar.bz2
minetest-0a413265cb7057b5303733dd32cf802a9ecf6105.zip
Document for api functions that rely on current_modname, that it doesn't work when not loading mods
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/lua_api/l_base.h b/src/script/lua_api/l_base.h
index c580e9597..641013dfd 100644
--- a/src/script/lua_api/l_base.h
+++ b/src/script/lua_api/l_base.h
@@ -40,6 +40,7 @@ public:
static Server* getServer(lua_State *L);
static Environment* getEnv(lua_State *L);
static GUIEngine* getGuiEngine(lua_State *L);
+ // When we are not loading the mod, this function returns "."
static std::string getCurrentModPath(lua_State *L);
// Get an arbitrary subclass of ScriptApiBase