summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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...");