diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/board/BoardParser.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
23 | Board.Builder b = new Board.Builder(Matrix.getWidth(map), Matrix.getHeight(map)); | 23 | Board.Builder b = new Board.Builder(Matrix.getWidth(map), Matrix.getHeight(map)); |
24 | for (ListIterator<List<BlockType>> line = map.listIterator(); line.hasNext(); ) | 24 | for (ListIterator<List<BlockType>> line = map.listIterator(); line.hasNext(); ) |
25 | for (ListIterator<BlockType> block = line.next().listIterator(); block.hasNext(); ) | 25 | for (ListIterator<BlockType> block = line.next().listIterator(); block.hasNext(); ) |
26 | b.setBlockTypeAt(TileVec2.of(line.previousIndex(), block.nextIndex()), block.next()); | 26 | b.setBlockTypeAt(TileVec2.of(block.nextIndex(), line.previousIndex()), block.next()); |
27 | 27 | ||
28 | return b.build(); | 28 | return b.build(); |
29 | } | 29 | } |