mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Improved trees, improved inventory transactions, improved snowball/bow usage
This commit is contained in:
@ -45,11 +45,11 @@ class Perlin extends Noise{
|
||||
}
|
||||
|
||||
for($i = 0; $i < 256; ++$i){
|
||||
$this->perm[$i] = $random->nextRange(0, 255);
|
||||
$this->perm[$i] = $random->nextBoundedInt(256);
|
||||
}
|
||||
|
||||
for($i = 0; $i < 256; ++$i){
|
||||
$pos = $random->nextRange(0, 255 - $i) + $i;
|
||||
$pos = $random->nextBoundedInt(256 - $i) + $i;
|
||||
$old = $this->perm[$i];
|
||||
|
||||
$this->perm[$i] = $this->perm[$pos];
|
||||
|
Reference in New Issue
Block a user