From ba298420d7890412c42b671e387602c3fc240730 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Fri, 8 Apr 2016 13:16:59 +0200 Subject: Make shadows great again --- src/ch/epfl/xblast/server/GameState.java | 5 ++--- 1 file 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 { 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) - ) - .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) + .map(Sq::head)) .collect(Collectors.toList()); } -- cgit v1.2.3