This commit is contained in:
Ad5001 2017-05-15 17:27:55 +02:00
父節點 b5fb3c21ae
當前提交 8f933a8c12
共有 1 個文件被更改,包括 1 次插入1 次删除

查看文件

@ -87,7 +87,7 @@ class MineshaftPopulator extends AmountPopulator {
* @param Random $random
*/
public function generateMineshaftPart(int $x, int $y, int $z, int $dir, Random $random) {
if ($this->maxPath -- < 1 || $y >= $this->getHighestBlockAt($x, $z) - 10)
if ($this->maxPath -- < 1 || $y >= $this->getHighestWorkableBlock($x, $z) - 10)
return;
$type = $random->nextBoundedInt(3);
$level = $this->level;