mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 10:05:41 -05:00
Fix variation metadata and error message in
ChartEditorImportExportHandler
This commit is contained in:
parent
27de7dc036
commit
de5edb3cc2
2 changed files with 4 additions and 4 deletions
|
@ -98,10 +98,10 @@ class Song implements IPlayStateScriptedClass implements IRegistryEntry<SongMeta
|
||||||
for (vari in _data.playData.songVariations)
|
for (vari in _data.playData.songVariations)
|
||||||
{
|
{
|
||||||
variations.push(vari);
|
variations.push(vari);
|
||||||
}
|
|
||||||
|
|
||||||
for (meta in fetchVariationMetadata(id))
|
var variMeta = fetchVariationMetadata(id, vari);
|
||||||
_metadata.set(meta.variation, meta);
|
if (variMeta != null) _metadata.set(variMeta.variation, variMeta);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_metadata.size() == 0)
|
if (_metadata.size() == 0)
|
||||||
|
|
|
@ -285,7 +285,7 @@ class ChartEditorImportExportHandler
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw 'Could not load vocals ($playerCharId-$instId).';
|
throw 'Could not load vocals ($opponentCharId).';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue