1
0
Fork 0
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:
EliteMasterEric 2023-08-04 11:18:00 -04:00
parent 5b4a00e893
commit 11b1ca5100

View file

@ -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)