diff --git a/app/src/main/java/com/mintris/model/GameBoard.kt b/app/src/main/java/com/mintris/model/GameBoard.kt index ce26763..8d3c700 100644 --- a/app/src/main/java/com/mintris/model/GameBoard.kt +++ b/app/src/main/java/com/mintris/model/GameBoard.kt @@ -97,8 +97,13 @@ class GameBoard( if (holdPiece == null) { // If no piece is held, hold current piece and spawn new one holdPiece = current + currentPiece = nextPiece spawnNextPiece() - spawnPiece() + // Reset position of new piece + currentPiece?.apply { + x = (width - getWidth()) / 2 + y = 0 + } } else { // Swap current piece with held piece currentPiece = holdPiece