Well #23
This commit is contained in:
parent
b5fb3c21ae
commit
8f933a8c12
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue