fixed a thing

This commit is contained in:
Ishaan Bhardwaj 2020-10-14 13:45:56 -04:00
parent b47d0f36b9
commit d978ff8d87

View File

@ -12,7 +12,7 @@ function RecursiveRandomizer:generatePiece()
--end --end
local x = math.random(table.getn(self.bag) + 1) local x = math.random(table.getn(self.bag) + 1)
while x == table.getn(self.bag) + 1 do while x == table.getn(self.bag) + 1 do
print("Refill piece pulled") --print("Refill piece pulled")
table.insert(self.bag, "I") table.insert(self.bag, "I")
table.insert(self.bag, "J") table.insert(self.bag, "J")
table.insert(self.bag, "L") table.insert(self.bag, "L")