diff options
-rw-r--r-- | src/ch/epfl/xblast/server/GameState.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 31bb902..c51afe7 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java | |||
@@ -104,11 +104,12 @@ public final class GameState { | |||
104 | return Stream.concat( | 104 | return Stream.concat( |
105 | blasts0.stream() | 105 | blasts0.stream() |
106 | .filter(blastSeq -> !blastSeq.tail().isEmpty()) | 106 | .filter(blastSeq -> !blastSeq.tail().isEmpty()) |
107 | .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) | ||
108 | .map(Sq::tail), | 107 | .map(Sq::tail), |
109 | explosions0.stream() | 108 | explosions0.stream() |
110 | .map(Sq::head) | 109 | .map(Sq::head) |
111 | ).collect(Collectors.toList()); | 110 | ) |
111 | .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) | ||
112 | .collect(Collectors.toList()); | ||
112 | } | 113 | } |
113 | 114 | ||
114 | /** | 115 | /** |