diff options
-rw-r--r-- | src/ch/epfl/xblast/server/GameState.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 3df5ebd..288aeb8 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java | |||
@@ -104,11 +104,10 @@ 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()) | ||
107 | .map(Sq::tail), | 108 | .map(Sq::tail), |
108 | explosions0.stream() | 109 | explosions0.stream() |
109 | .map(Sq::head) | 110 | .map(Sq::head)) |
110 | ) | ||
111 | .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) | ||
112 | .collect(Collectors.toList()); | 111 | .collect(Collectors.toList()); |
113 | } | 112 | } |
114 | 113 | ||