mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
don't depend on phpstan 0.12.4 phpdoc inheriting
this causes build failure because the parameter names are different to the base class.
This commit is contained in:
parent
8f7d8347ee
commit
5816ff85ba
@ -151,6 +151,12 @@ class Perlin extends Noise{
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $x
|
||||
* @param float $y
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getNoise2D($x, $y){
|
||||
return $this->getNoise3D($x, $y, 0);
|
||||
}
|
||||
|
@ -266,6 +266,12 @@ class Simplex extends Perlin{
|
||||
return 32.0 * $n;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $x
|
||||
* @param float $y
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getNoise2D($x, $y){
|
||||
$x += $this->offsetX;
|
||||
$y += $this->offsetY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user