public function getViewDistance($distance) { return $this->lowMemory ? min($this->chunkLimit, $distance) : $distance; }