From 75d130b4743ad4205ef873664225a341596286a1 Mon Sep 17 00:00:00 2001 From: rito528 Date: Tue, 28 Feb 2023 22:59:49 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20statistics=E3=82=92=E6=B1=82=E3=82=81?= =?UTF-8?q?=E3=82=8B=E9=9A=9B=E3=81=AB.get=E3=81=97=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unchama/seichiassist/menus/VoteMenu.scala | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/scala/com/github/unchama/seichiassist/menus/VoteMenu.scala b/src/main/scala/com/github/unchama/seichiassist/menus/VoteMenu.scala index cd74e0eaa5..829b904c78 100644 --- a/src/main/scala/com/github/unchama/seichiassist/menus/VoteMenu.scala +++ b/src/main/scala/com/github/unchama/seichiassist/menus/VoteMenu.scala @@ -388,13 +388,15 @@ object VoteMenu extends Menu { s"${GRAY}なまえ:${rankData.playerName} りんご:${rankData.consumed.amount}個" ) } - val statistics = List( - s"${AQUA}ぜーんぶで${allEatenAppleAmount.amount}個もらえた!", - "", - s"$GREEN↓呼び出したニンゲンの情報↓", - s"${GREEN}今までに${myRank.get.consumed.amount}個もらった", - s"${GREEN}ニンゲンの中では${myRank.get.rank}番目にたくさんくれる!" - ) + val statistics = myRank.map { rank => + List( + s"${AQUA}ぜーんぶで${allEatenAppleAmount.amount}個もらえた!", + "", + s"$GREEN↓呼び出したニンゲンの情報↓", + s"${GREEN}今までに${rank.consumed.amount}個もらった", + s"${GREEN}ニンゲンの中では${rank.rank}番目にたくさんくれる!" + ) + }.orEmpty Button( new IconItemStackBuilder(Material.GOLDEN_APPLE)