aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew I <matttpt@gmail.com>2012-07-21 21:45:09 -0400
committerPerttu Ahola <celeron55@gmail.com>2012-07-22 13:36:17 +0300
commitc259f7c8bd67e38c7be19a90c5113dbf8fd13670 (patch)
tree23dbeeda691157c3a7cc52be40ddcc00664289ae
parentc62a121cca1df697604aaea0e7e6cf7ddcf8d08c (diff)
downloadminetest-c259f7c8bd67e38c7be19a90c5113dbf8fd13670.tar.gz
minetest-c259f7c8bd67e38c7be19a90c5113dbf8fd13670.tar.bz2
minetest-c259f7c8bd67e38c7be19a90c5113dbf8fd13670.zip
Update Lua API documentation to include minetest.get_modnames()
-rw-r--r--doc/lua_api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 0f91d3894..d5797d171 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -718,6 +718,8 @@ minetest namespace reference
minetest.get_current_modname() -> string
minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname"
^ Useful for loading additional .lua modules or static data from mod
+minetest.get_modnames() -> list of installed mods
+^ Return a list of installed mods, sorted alphabetically
minetest.get_worldpath() -> eg. "/home/user/.minetest/world"
^ Useful for storing custom data
minetest.is_singleplayer()