Updated again
This commit is contained in:
parent
14f88abd3d
commit
82ec202ad3
|
|
@ -196,7 +196,7 @@ public class Board {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Only move the piece if the destination is valid
|
// Only move the piece if the destination is valid
|
||||||
if (isValidMove) {
|
if (isValidMove) {
|
||||||
movePiece(selectedX, selectedY, x, y);
|
movePiece(selectedX, selectedY, x, y);
|
||||||
|
|
@ -225,6 +225,7 @@ public class Board {
|
||||||
this.selectedPosition = null;
|
this.selectedPosition = null;
|
||||||
highlightedPositions.clear();//Clear after move
|
highlightedPositions.clear();//Clear after move
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue