From 8f933a8c12a4a2fdb93c48d7da52ca38b9f5a215 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 15 May 2017 17:27:55 +0200 Subject: [PATCH] Well #23 --- src/Ad5001/BetterGen/populator/MineshaftPopulator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ad5001/BetterGen/populator/MineshaftPopulator.php b/src/Ad5001/BetterGen/populator/MineshaftPopulator.php index e2109c8..7e5c7f9 100644 --- a/src/Ad5001/BetterGen/populator/MineshaftPopulator.php +++ b/src/Ad5001/BetterGen/populator/MineshaftPopulator.php @@ -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;