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:
parent
e5e2a75fd7
commit
fb55165611
|
@ -16,10 +16,9 @@ rocksl.print=function(text)
|
||||||
minetest.log("info","/rocks "..text)
|
minetest.log("info","/rocks "..text)
|
||||||
end
|
end
|
||||||
|
|
||||||
rocksl.seedseq=0
|
rocksl.seedprng=PseudoRandom(763)
|
||||||
rocksl.GetNextSeed=function()
|
rocksl.GetNextSeed=function()
|
||||||
rocksl.seedseq=rocksl.seedseq+20
|
return rocksl.seedprng:next()
|
||||||
return rocksl.seedseq
|
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.clear_registered_ores()
|
minetest.clear_registered_ores()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user