1
0
mirror of git://repo.or.cz/rocks.git synced 2024-11-16 23:40:40 +01:00

Pseudo random for seed difference.

This commit is contained in:
Tomáš Brada 2015-04-22 20:44:50 +02:00
parent e5e2a75fd7
commit fb55165611

View File

@ -16,10 +16,9 @@ rocksl.print=function(text)
minetest.log("info","/rocks "..text)
end
rocksl.seedseq=0
rocksl.seedprng=PseudoRandom(763)
rocksl.GetNextSeed=function()
rocksl.seedseq=rocksl.seedseq+20
return rocksl.seedseq
return rocksl.seedprng:next()
end
minetest.clear_registered_ores()