From a4be8e064c13490178135973ca5fc0f5bab168fb Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 14 Jul 2023 00:45:14 +0200 Subject: [PATCH] fix restart --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index eeb7460..8e0720f 100644 --- a/app.js +++ b/app.js @@ -34,6 +34,7 @@ let game = { matrix.init() scene.remove(matrix.piece) + if (matrix.piece) matrix.remove(matrix.piece) matrix.piece = null scene.music.currentTime = 0 matrix.visible = true