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)
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user