diff --git a/source/funkin/backend/chart/Chart.hx b/source/funkin/backend/chart/Chart.hx index 25906921..a9637e6a 100644 --- a/source/funkin/backend/chart/Chart.hx +++ b/source/funkin/backend/chart/Chart.hx @@ -278,7 +278,7 @@ class Chart { CoolUtil.safeSaveFile(chartPath, Json.stringify(filteredChart, null, saveSettings.prettyPrint == true ? Flags.JSON_PRETTY_PRINT : null)); - if (saveSettings.overrideExistingMeta == true || !FileSystem.exists(metaPath)) + if (meta != null && (saveSettings.overrideExistingMeta || !FileSystem.exists(metaPath))) CoolUtil.safeSaveFile(metaPath, makeMetaSaveable(meta)); #end return filteredChart; @@ -331,4 +331,4 @@ typedef ChartSaveSettings = { var ?saveGlobalEvents:Bool; var ?prettyPrint:Bool; var ?folder:String; -} \ No newline at end of file +}