mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-05 06:14:36 +00:00
Fix bug where pressing ENTER in UI would cause song to try to preview. Fix bug where trying to preview a newly created song would crash.
This commit is contained in:
parent
5b4a00e893
commit
11b1ca5100
|
@ -117,7 +117,7 @@ class Song implements IPlayStateScriptedClass implements IRegistryEntry<SongMeta
|
||||||
public static function buildRaw(songId:String, metadata:Array<SongMetadata>, variations:Array<String>, charts:Map<String, SongChartData>,
|
public static function buildRaw(songId:String, metadata:Array<SongMetadata>, variations:Array<String>, charts:Map<String, SongChartData>,
|
||||||
validScore:Bool = false):Song
|
validScore:Bool = false):Song
|
||||||
{
|
{
|
||||||
var result:Song = new Song(songId);
|
var result:Song = new Song(songId, true);
|
||||||
|
|
||||||
result._metadata.clear();
|
result._metadata.clear();
|
||||||
for (meta in metadata)
|
for (meta in metadata)
|
||||||
|
|
Loading…
Reference in a new issue