diff --git a/src/main/java/edu/rpi/legup/model/gameboard/GridBoard.java b/src/main/java/edu/rpi/legup/model/gameboard/GridBoard.java index 80d527939..d31e8185a 100644 --- a/src/main/java/edu/rpi/legup/model/gameboard/GridBoard.java +++ b/src/main/java/edu/rpi/legup/model/gameboard/GridBoard.java @@ -75,27 +75,34 @@ public void setCell(int x, int y, Element e, MouseEvent m) { if (m.getButton() == MouseEvent.BUTTON1) { if (clue.getData() < dimension.height) { clue.setData(clue.getData() + 1); - } else { + } + else { clue.setData(0); } - } else { + } + else { if (clue.getData() > 0) { clue.setData(clue.getData() - 1); - } else { + } + else { clue.setData(dimension.height); } } - } else { //x == dimension.width + } + else { //x == dimension.width if (m.getButton() == MouseEvent.BUTTON1) { if (clue.getData() < dimension.width) { clue.setData(clue.getData() + 1); - } else { + } + else { clue.setData(0); } - } else { + } + else { if (clue.getData() > 0) { clue.setData(clue.getData() - 1); - } else { + } + else { clue.setData(dimension.width); } }