Dieser Commit ist enthalten in:
Ursprung
92f32e410b
Commit
5ca6d9f4a4
@ -25,10 +25,7 @@ import de.steamwar.sql.internal.Statement;
|
|||||||
import de.steamwar.sql.internal.Table;
|
import de.steamwar.sql.internal.Table;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.*;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@ -83,7 +80,7 @@ public class UserElo {
|
|||||||
int newPlacement = getPlacement(elo, gameMode);
|
int newPlacement = getPlacement(elo, gameMode);
|
||||||
|
|
||||||
if (oldPlacement <= 3 || newPlacement <= 3) {
|
if (oldPlacement <= 3 || newPlacement <= 3) {
|
||||||
gameModeUserEloCache.getOrDefault(gameMode, new HashMap<>()).remove(userId);
|
gameModeUserEloCache.getOrDefault(gameMode, Collections.emptyMap()).remove(userId);
|
||||||
emblemCache.clear();
|
emblemCache.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren