From 3dd23622d97b9fdd75c22554250a793a95b08a55 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 7 Apr 2016 22:27:18 +0200 Subject: Make indestructible walls great again --- src/ch/epfl/xblast/server/GameState.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ch') 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 { return Stream.concat( blasts0.stream() .filter(blastSeq -> !blastSeq.tail().isEmpty()) - .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) .map(Sq::tail), explosions0.stream() .map(Sq::head) - ).collect(Collectors.toList()); + ) + .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) + .collect(Collectors.toList()); } /** -- cgit v1.2.3