mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
95b0884a8c
@ -92,7 +92,7 @@ public class WiredHighscoreManager {
|
|||||||
public List<WiredHighscoreRow> getHighscoreRowsForItem(int itemId, WiredHighscoreClearType clearType, WiredHighscoreScoreType scoreType) {
|
public List<WiredHighscoreRow> getHighscoreRowsForItem(int itemId, WiredHighscoreClearType clearType, WiredHighscoreScoreType scoreType) {
|
||||||
if (!this.data.containsKey(itemId)) return null;
|
if (!this.data.containsKey(itemId)) return null;
|
||||||
|
|
||||||
Stream<WiredHighscoreRow> highscores = this.data.get(itemId).stream()
|
Stream<WiredHighscoreRow> highscores = new ArrayList<>(this.data.get(itemId)).stream()
|
||||||
.filter(entry -> this.timeMatchesEntry(entry, clearType) && (scoreType != WiredHighscoreScoreType.MOSTWIN || entry.isWin()))
|
.filter(entry -> this.timeMatchesEntry(entry, clearType) && (scoreType != WiredHighscoreScoreType.MOSTWIN || entry.isWin()))
|
||||||
.map(entry -> new WiredHighscoreRow(
|
.map(entry -> new WiredHighscoreRow(
|
||||||
entry.getUserIds().stream()
|
entry.getUserIds().stream()
|
||||||
|
Loading…
Reference in New Issue
Block a user