mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Fixed static methods in PerlinNoiseGenerator
This commit is contained in:
parent
3f2bbab7e6
commit
3c65461a9d
1 changed files with 2 additions and 2 deletions
|
@ -189,7 +189,7 @@ public class PerlinNoiseGenerator extends NoiseGenerator {
|
|||
* @param amplitude How much to alter the amplitude by each octave
|
||||
* @return Resulting noise
|
||||
*/
|
||||
public double getNoise(double x, double y, int octaves, double frequency, double amplitude) {
|
||||
public static double getNoise(double x, double y, int octaves, double frequency, double amplitude) {
|
||||
return instance.noise(x, y, octaves, frequency, amplitude);
|
||||
}
|
||||
|
||||
|
@ -204,7 +204,7 @@ public class PerlinNoiseGenerator extends NoiseGenerator {
|
|||
* @param amplitude How much to alter the amplitude by each octave
|
||||
* @return Resulting noise
|
||||
*/
|
||||
public double getNoise(double x, double y, double z, int octaves, double frequency, double amplitude) {
|
||||
public static double getNoise(double x, double y, double z, int octaves, double frequency, double amplitude) {
|
||||
return instance.noise(x, y, z, octaves, frequency, amplitude);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue