1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-24 14:16:56 +00:00

checking empty suffix is stupid

This commit is contained in:
lemz 2024-06-24 21:48:09 +02:00 committed by EliteMasterEric
parent f9bccb057a
commit 4746c1da0e

View file

@ -89,13 +89,13 @@ class NoteKindManager
*/
public static function getNoteStyleId(noteKind:String, ?suffix:String):Null<String>
{
if (suffix == null)
if (suffix == '')
{
suffix = '';
suffix = null;
}
var noteStyleId:Null<String> = noteKinds.get(noteKind)?.noteStyleId;
if (noteStyleId != null)
if (noteStyleId != null && suffix != null)
{
noteStyleId = NoteStyleRegistry.instance.hasEntry('$noteStyleId-$suffix') ? '$noteStyleId-$suffix' : noteStyleId;
}