text fix forWheel of Misfortune #7292

This commit is contained in:
Ingmar Goudt 2020-12-26 15:35:02 +01:00
parent 7753ca305e
commit 9f63c3f1f6

View file

@ -70,12 +70,12 @@ class WheelOfMisfortuneEffect extends OneShotEffect {
if (player == null) {
continue;
}
game.informPlayers(player.getName() + " chose " + playerMap);
game.informPlayers(player.getName() + " chose " + entry.getValue());
}
int maxValue = playerMap.values().stream().mapToInt(x -> x).max().orElse(0);
game.informPlayers("The highest number chosen was " + maxValue);
int minValue = playerMap.values().stream().mapToInt(x -> x).min().orElse(0);
game.informPlayers("The lowest number chosen was " + maxValue);
game.informPlayers("The lowest number chosen was " + minValue);
for (Map.Entry<UUID, Integer> entry : playerMap.entrySet()) {
Player player = game.getPlayer(entry.getKey());
if (player == null) {