diff options
author | madmaxoft <github@xoft.cz> | 2013-12-27 14:32:40 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-12-27 14:32:40 +0100 |
commit | 1a3a291bde12ad438bd95ea5df3c7b647df550d9 (patch) | |
tree | 0a12f6972f6e936b12e8a65c2cda49db67431346 | |
parent | Merge pull request #477 from mc-server/cmake-win (diff) | |
download | cuberite-1a3a291bde12ad438bd95ea5df3c7b647df550d9.tar cuberite-1a3a291bde12ad438bd95ea5df3c7b647df550d9.tar.gz cuberite-1a3a291bde12ad438bd95ea5df3c7b647df550d9.tar.bz2 cuberite-1a3a291bde12ad438bd95ea5df3c7b647df550d9.tar.lz cuberite-1a3a291bde12ad438bd95ea5df3c7b647df550d9.tar.xz cuberite-1a3a291bde12ad438bd95ea5df3c7b647df550d9.tar.zst cuberite-1a3a291bde12ad438bd95ea5df3c7b647df550d9.zip |
-rw-r--r-- | MCServer/Plugins/APIDump/main_APIDump.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MCServer/Plugins/APIDump/main_APIDump.lua b/MCServer/Plugins/APIDump/main_APIDump.lua index e5c8b9c30..06dd451d7 100644 --- a/MCServer/Plugins/APIDump/main_APIDump.lua +++ b/MCServer/Plugins/APIDump/main_APIDump.lua @@ -232,11 +232,11 @@ end function DumpAPIHtml() LOG("Dumping all available functions and constants to API subfolder..."); - LOG("Moving static files.."); + LOG("Copying static files.."); cFile:CreateFolder("API/Static"); local localFolder = g_Plugin:GetLocalFolder(); - for k, v in cFile:GetFolderContents(localFolder .. "/Static") do - cFile:Copy(localFolder .. "/Static/" .. v, "API/Static/" .. v); + for idx, fnam in ipairs(cFile:GetFolderContents(localFolder .. "/Static")) do + cFile:Copy(localFolder .. "/Static/" .. fnam, "API/Static/" .. fnam); end LOG("Creating API tables..."); |