Skip to content

Commit 4147473

Browse files
authored
Update Chart.hx
1 parent bcbfa90 commit 4147473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/funkin/backend/chart/Chart.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ class Chart {
278278

279279
CoolUtil.safeSaveFile(chartPath, Json.stringify(filteredChart, null, saveSettings.prettyPrint == true ? Flags.JSON_PRETTY_PRINT : null));
280280

281-
if (saveSettings.overrideExistingMeta == true || !FileSystem.exists(metaPath))
281+
if (meta != null && (saveSettings.overrideExistingMeta || !FileSystem.exists(metaPath)))
282282
CoolUtil.safeSaveFile(metaPath, makeMetaSaveable(meta));
283283
#end
284284
return filteredChart;
@@ -331,4 +331,4 @@ typedef ChartSaveSettings = {
331331
var ?saveGlobalEvents:Bool;
332332
var ?prettyPrint:Bool;
333333
var ?folder:String;
334-
}
334+
}

0 commit comments

Comments
 (0)