mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-24 22:26:50 +00:00
checking empty suffix is stupid
This commit is contained in:
parent
f9bccb057a
commit
4746c1da0e
|
@ -89,13 +89,13 @@ class NoteKindManager
|
||||||
*/
|
*/
|
||||||
public static function getNoteStyleId(noteKind:String, ?suffix:String):Null<String>
|
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;
|
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;
|
noteStyleId = NoteStyleRegistry.instance.hasEntry('$noteStyleId-$suffix') ? '$noteStyleId-$suffix' : noteStyleId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue