From: Matthew I Date: Sun, 22 Jul 2012 01:45:09 +0000 (-0400) Subject: Update Lua API documentation to include minetest.get_modnames() X-Git-Tag: 0.4.2-rc1~46 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c259f7c8bd67e38c7be19a90c5113dbf8fd13670;p=oweals%2Fminetest.git Update Lua API documentation to include minetest.get_modnames() --- 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()