aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/fr
diff options
context:
space:
mode:
authorpacien2018-01-12 00:17:02 +0100
committerpacien2018-01-12 00:17:02 +0100
commite33c61d4a6dfba20c1dd69d1a22b55b23a9cf940 (patch)
tree149da09ace956aea79fcb0410970ce231ed58332 /src/main/java/fr
parent4e7a2210c94589cd9a5370497d8a28f5ba487c54 (diff)
downloadwallj-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.java2
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 }