Skip to content
Snippets Groups Projects
Commit 894f98d8 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Fix typo in nyan cat generation

parent 3a1a7d51
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ function generate_nyancats(seed, minp, maxp)
local pr = PseudoRandom(seed + 9324342)
local max_num_nyancats = math.floor(volume / (16*16*16))
for i=1,max_num_nyancats do
if pr.next(0, 1000) == 0 then
if pr:next(0, 1000) == 0 then
local x0 = pr:next(minp.x, maxp.x)
local y0 = pr:next(minp.y, maxp.y)
local z0 = pr:next(minp.z, maxp.z)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment