solved: i put append instead of write in export

This commit is contained in:
bizcochito 2022-02-08 10:53:53 +01:00
parent 7e134f7961
commit 2f19554279
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ function ExportLevel(levelname, filename)
os.execute( "mkdir \"./Mothback/export\"" ) os.execute( "mkdir \"./Mothback/export\"" )
filename = filename or "output.lua" filename = filename or "output.lua"
filename = "Mothback/export/"..filename filename = "Mothback/export/"..filename
exportFile = io.open(filename, "a+") exportFile = io.open(filename, "w+")
if exportFile then if exportFile then
exportFile:write("return {") exportFile:write("return {")
logPrint("Exporting level \"".. levelname .. "\"...") logPrint("Exporting level \"".. levelname .. "\"...")