From 894f98d878b198256881e348e294365e8a677cbf Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 20 May 2012 18:32:58 +0300 Subject: [PATCH] Fix typo in nyan cat generation --- mods/default/mapgen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index 7bea2717..35fc0654 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -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)