mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 16:29:40 +00:00
Merge branch 'master' of https://github.com/pmmp/pocketmine-mp
This commit is contained in:
commit
045868783c
@ -77,6 +77,11 @@ class Simplex extends Noise{
|
||||
$this->perm[$pos] = $old;
|
||||
$this->perm[$i + 256] = $this->perm[$i];
|
||||
}
|
||||
|
||||
//this dummy call is necessary to produce the same RNG state as before latest refactors to this file
|
||||
//previously this value would be used for offsetW
|
||||
//TODO: this really needs to reset the RNG seed to avoid future RNG contamination
|
||||
$random->nextSignedInt();
|
||||
}
|
||||
|
||||
public function getNoise3D($x, $y, $z){
|
||||
|
Loading…
x
Reference in New Issue
Block a user