From 837bbf0de369a560ed0701e3f63e002a7171a8f8 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Fri, 20 Dec 2013 16:31:30 +0000 Subject: @madmaxoft now? --- MCServer/Plugins/APIDump/main_APIDump.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MCServer/Plugins/APIDump/main_APIDump.lua') 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..."); -- cgit v1.2.3