File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed
src/main/java/com/github/elic0de/hungergames/game Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ private void sortAsync(){
7474 final AtomicInteger position = new AtomicInteger ();
7575
7676 // 記録を降順にソートする
77- // 最大で上位10件の記録をリストに追加する
7877 list .stream ().sorted (Collections .reverseOrder (Map .Entry .comparingByValue ())).forEach (entry -> {
7978 rank .put (entry .getKey (), position .incrementAndGet ());
8079 });
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ public void endGame() {
176176 private void showResult () {
177177 final List <Map .Entry <UUID , Integer >> list = new ArrayList <>(records .getRank ().entrySet ());
178178
179+ // 最大で上位10件の記録をブロードキャスト
179180 list .stream ().sorted (Map .Entry .comparingByValue ()).limit (10 ).forEach (entry -> {
180181 final UUID uuid = entry .getKey ();
181182 final OfflinePlayer player = Bukkit .getOfflinePlayer (uuid );
You can’t perform that action at this time.
0 commit comments