Skip to content

Commit

Permalink
fix: statisticsを求める際に.getしないように
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Feb 28, 2023
1 parent 7a0b7c7 commit 75d130b
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75d130b

Please sign in to comment.