From bf2e949def676cae62bea44593f805cdcf40edaa Mon Sep 17 00:00:00 2001 From: Tetro48 <76738929+Tetro48@users.noreply.github.com> Date: Thu, 16 Mar 2023 10:23:53 +0700 Subject: [PATCH] Now using love.math.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 ccdcd78..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[math.random(#bag)] + local generated = bag[love.math.random(#bag)] self:updateDroughts(generated) return generated end