From 3505be850fe92bccb82b90007cbcecff6d1f6ccd Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sun, 2 Jul 2023 15:13:44 -0400 Subject: [PATCH] Fixed error in migration to Love2D random --- tetris/randomizers/dtet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetris/randomizers/dtet.lua b/tetris/randomizers/dtet.lua index 429a4c6..d633938 100644 --- a/tetris/randomizers/dtet.lua +++ b/tetris/randomizers/dtet.lua @@ -58,7 +58,7 @@ function DTETRandomizer:generatePiece() end -- pull piece from 21-bag and update drought counters - local generated = bag[love.love.math.random(#bag)] + local generated = bag[love.math.random(#bag)] self:updateDroughts(generated) return generated end