From 3d977b28474710ad5c71d4b71e556469d0966e6b Mon Sep 17 00:00:00 2001 From: lieren2023 <131325076+lieren2023@users.noreply.github.com> Date: Sun, 21 Apr 2024 18:40:59 +0800 Subject: [PATCH] =?UTF-8?q?ui.create.characterDialog=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/ui/create/index.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/noname/ui/create/index.js b/noname/ui/create/index.js index 235a5cbc9..0d088100b 100644 --- a/noname/ui/create/index.js +++ b/noname/ui/create/index.js @@ -1299,17 +1299,19 @@ export class Create { } } else { for (var i in lib.character) { - if (lib.character[i][4].includes("minskin")) continue; - if ( - lib.character[i][4].includes("boss") || - lib.character[i][4].includes("hiddenboss") - ) { - if (lib.config.mode == "boss") continue; - if (!lib.character[i][4].includes("bossallowed")) continue; - } + if(lib.character[i][4]) { + if (lib.character[i][4].includes("minskin")) continue; + if ( + lib.character[i][4].includes("boss") || + lib.character[i][4].includes("hiddenboss") + ) { + if (lib.config.mode == "boss") continue; + if (!lib.character[i][4].includes("bossallowed")) continue; + } - if (lib.character[i][4].includes("stonehidden")) continue; - if (lib.character[i][4].includes("unseen")) continue; + if (lib.character[i][4].includes("stonehidden")) continue; + if (lib.character[i][4].includes("unseen")) continue; + } if (lib.config.banned.includes(i)) continue; if ( lib.characterFilter[i] &&