summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main_APIDump.lua
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-12-20 17:31:30 +0100
committerAlexander Harkness <bearbin@gmail.com>2013-12-20 17:31:30 +0100
commit837bbf0de369a560ed0701e3f63e002a7171a8f8 (patch)
tree60198fd26a47cf3ebbc833cf23709fb528aec888 /MCServer/Plugins/APIDump/main_APIDump.lua
parentPossibly fixes #384 (diff)
downloadcuberite-837bbf0de369a560ed0701e3f63e002a7171a8f8.tar
cuberite-837bbf0de369a560ed0701e3f63e002a7171a8f8.tar.gz
cuberite-837bbf0de369a560ed0701e3f63e002a7171a8f8.tar.bz2
cuberite-837bbf0de369a560ed0701e3f63e002a7171a8f8.tar.lz
cuberite-837bbf0de369a560ed0701e3f63e002a7171a8f8.tar.xz
cuberite-837bbf0de369a560ed0701e3f63e002a7171a8f8.tar.zst
cuberite-837bbf0de369a560ed0701e3f63e002a7171a8f8.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/main_APIDump.lua')
-rw-r--r--MCServer/Plugins/APIDump/main_APIDump.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/MCServer/Plugins/APIDump/main_APIDump.lua b/MCServer/Plugins/APIDump/main_APIDump.lua
index 676f4d9a6..d7aff1926 100644
--- a/MCServer/Plugins/APIDump/main_APIDump.lua
+++ b/MCServer/Plugins/APIDump/main_APIDump.lua
@@ -1,4 +1,3 @@
-
-- main.lua
-- Implements the plugin entrypoint (in this case the entire plugin)
@@ -233,8 +232,9 @@ end
function DumpAPIHtml()
LOG("Moving static files.");
- for i in cFile:GetFolderContents("Static") do
- cFile:Copy("Static/" .. i, "API/" .. i);
+ local localFolder = g_Plugin:GetLocalFolder();
+ for k, v in cFile:GetFolderContents("Static") do
+ cFile:Copy(localFolder .. "/Static/" .. v, localFolder .. "/API/" .. v);
end
LOG("Dumping all available functions and constants to API subfolder...");