From e399304c1c70a4f877f43d5a3945e30cb2fefc6a Mon Sep 17 00:00:00 2001 From: skeletor Date: Wed, 5 Feb 2020 07:17:47 -0500 Subject: [PATCH] fix concurrentException in wired highscores --- .../habbohotel/wired/highscores/WiredHighscoreManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/wired/highscores/WiredHighscoreManager.java b/src/main/java/com/eu/habbo/habbohotel/wired/highscores/WiredHighscoreManager.java index 1873b2de..5e797bec 100644 --- a/src/main/java/com/eu/habbo/habbohotel/wired/highscores/WiredHighscoreManager.java +++ b/src/main/java/com/eu/habbo/habbohotel/wired/highscores/WiredHighscoreManager.java @@ -92,7 +92,7 @@ public class WiredHighscoreManager { public List getHighscoreRowsForItem(int itemId, WiredHighscoreClearType clearType, WiredHighscoreScoreType scoreType) { if (!this.data.containsKey(itemId)) return null; - Stream highscores = this.data.get(itemId).stream() + Stream highscores = new ArrayList<>(this.data.get(itemId)).stream() .filter(entry -> this.timeMatchesEntry(entry, clearType) && (scoreType != WiredHighscoreScoreType.MOSTWIN || entry.isWin())) .map(entry -> new WiredHighscoreRow( entry.getUserIds().stream()