From e33c61d4a6dfba20c1dd69d1a22b55b23a9cf940 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 12 Jan 2018 00:17:02 +0100 Subject: Fix associated code Signed-off-by: pacien --- src/main/java/fr/umlv/java/wallj/board/BoardParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/fr/umlv/java/wallj/board/BoardParser.java b/src/main/java/fr/umlv/java/wallj/board/BoardParser.java index a9dca27..c6d0cd8 100644 --- a/src/main/java/fr/umlv/java/wallj/board/BoardParser.java +++ b/src/main/java/fr/umlv/java/wallj/board/BoardParser.java @@ -23,7 +23,7 @@ public final class BoardParser { Board.Builder b = new Board.Builder(Matrix.getWidth(map), Matrix.getHeight(map)); for (ListIterator> line = map.listIterator(); line.hasNext(); ) for (ListIterator block = line.next().listIterator(); block.hasNext(); ) - b.setBlockTypeAt(TileVec2.of(line.previousIndex(), block.nextIndex()), block.next()); + b.setBlockTypeAt(TileVec2.of(block.nextIndex(), line.previousIndex()), block.next()); return b.build(); } -- cgit v1.2.3