diff --git a/npcf/npcf.lua b/npcf/npcf.lua index caadbc0..774024a 100644 --- a/npcf/npcf.lua +++ b/npcf/npcf.lua @@ -26,7 +26,7 @@ if input then io.close(input) else local dir = string.gsub(NPCF_DATADIR, "/", package.config:sub(1,1)) - os.execute("mkdir "..NPCF_DATADIR) + os.execute("mkdir "..dir) local output = io.open(NPCF_DATADIR.."/index.txt", 'w') if output then output:write(minetest.serialize(index))