Now using love.math.random.

pull/15/head
Tetro48 2023-03-16 10:23:53 +07:00
parent f2be04f269
commit bf2e949def
No known key found for this signature in database
GPG Key ID: 4D50AA39E7DD5444
1 changed files with 1 additions and 1 deletions

View File

@ -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