Fix next piece preview not updating on mobile

This commit is contained in:
cmclark00 2025-03-25 17:22:33 -04:00
parent 71afcdee75
commit 3c5afc01c8

View file

@ -535,7 +535,8 @@ class Piece {
} else {
// If can't move down, lock the piece
this.lock();
p = randomPiece();
// Replace with getNextPiece function call instead of direct assignment
getNextPiece();
p.calculateShadowY(); // Calculate shadow for new piece
}
@ -652,8 +653,8 @@ class Piece {
// Lock the piece
this.lock();
// Get new piece
p = randomPiece();
// Replace with getNextPiece function call instead of direct assignment
getNextPiece();
// Calculate shadow for new piece
p.calculateShadowY();