diff options
author | pacien | 2018-01-12 00:17:02 +0100 |
---|---|---|
committer | pacien | 2018-01-12 00:17:02 +0100 |
commit | e33c61d4a6dfba20c1dd69d1a22b55b23a9cf940 (patch) | |
tree | 149da09ace956aea79fcb0410970ce231ed58332 /src/main/java/fr | |
parent | 4e7a2210c94589cd9a5370497d8a28f5ba487c54 (diff) | |
download | wallj-e33c61d4a6dfba20c1dd69d1a22b55b23a9cf940.tar.gz |
Fix associated code
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'src/main/java/fr')
-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 | } |