public static function getPerlinNoise($x, $y) { if (defined('MAP_PERLIN_NO_CACHE')) { $data = new self(); return $data->getOneSingleLocation($x, $y); } static $in; if (!isset($in)) { $in = new self(); } return $in->getLocalNoise($x, $y); }