From ff1668b04a177c71789f54ec05d77d208b6d2a22 Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Sat, 12 Oct 2024 23:31:11 +0200 Subject: [PATCH] Cleanup --- source/funkin/editors/EditorPicker.hx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/funkin/editors/EditorPicker.hx b/source/funkin/editors/EditorPicker.hx index 5b2c7266..3fb4c5d9 100644 --- a/source/funkin/editors/EditorPicker.hx +++ b/source/funkin/editors/EditorPicker.hx @@ -81,9 +81,7 @@ class EditorPicker extends MusicBeatSubstate { optionHeight = FlxG.height / options.length; for(k=>o in options) { - var id = o.id + ".name"; - var visualName = TU.translate(id); - if(o.id == null) visualName = o.name; + var visualName = (o.id != null) ? TU.translate(o.id + ".name") : o.name; var spr = new EditorPickerOption(visualName, o.iconID, optionHeight); spr.y = k * optionHeight; add(spr);