Revert "Revert "Fix omission in previous commit""
This reverts commit 58a8cec8b4269403cfe64fbbd8d4ed3f0a8e0866.
This commit is contained in:
parent
58a8cec8b4
commit
6787bd7cce
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user