diff options
Diffstat (limited to 'src/ch/epfl')
-rw-r--r-- | src/ch/epfl/xblast/server/GameState.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 6e7f8c4..0512510 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java | |||
@@ -289,6 +289,8 @@ public final class GameState { | |||
289 | * @return the highest priority player | 289 | * @return the highest priority player |
290 | */ | 290 | */ |
291 | private PlayerID resolveConflict(List<PlayerID> claimants) { | 291 | private PlayerID resolveConflict(List<PlayerID> claimants) { |
292 | if (claimants == null || claimants.isEmpty()) throw new IllegalArgumentException(); | ||
293 | |||
292 | return this.currentPlayerPriorityOrder() | 294 | return this.currentPlayerPriorityOrder() |
293 | .stream() | 295 | .stream() |
294 | .filter(claimants::contains) | 296 | .filter(claimants::contains) |