solved: i put append instead of write in export
This commit is contained in:
parent
7e134f7961
commit
2f19554279
|
@ -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 .. "\"...")
|
||||||
|
|
Loading…
Reference in New Issue