character editor selection uses base game songs if theres no mods

This commit is contained in:
lunarcleint
2023-07-25 16:01:33 -07:00
parent c4fd398b09
commit 4867aa0839
@@ -13,11 +13,11 @@ class CharacterSelection extends EditorTreeMenu
public override function create()
{
bgType = "charter";
super.create();
var modsList:Array<String> = Character.getList(true);
main = new OptionsScreen("Character Editor", "Select a character to edit", [
for (char in Character.getList(true))
for (char in (modsList.length == 0 ? Character.getList(false) : modsList))
new IconOption(char, "Press ACCEPT to edit this character.", Character.getIconFromCharName(char),
function() {
FlxG.switchState(new CharacterEditor(char));