diff --git a/src/world/generator/object/SpruceTree.php b/src/world/generator/object/SpruceTree.php index 62a4e4412..3439b03d4 100644 --- a/src/world/generator/object/SpruceTree.php +++ b/src/world/generator/object/SpruceTree.php @@ -35,7 +35,7 @@ class SpruceTree extends Tree{ parent::__construct(VanillaBlocks::SPRUCE_LOG(), VanillaBlocks::SPRUCE_LEAVES(), 10); } - protected function generateChunkHeight(Random $random) : int{ + protected function generateTrunkHeight(Random $random) : int{ return $this->treeHeight - $random->nextBoundedInt(3); } diff --git a/src/world/generator/object/Tree.php b/src/world/generator/object/Tree.php index b37f56a3d..90eef6c3a 100644 --- a/src/world/generator/object/Tree.php +++ b/src/world/generator/object/Tree.php @@ -76,13 +76,13 @@ abstract class Tree{ } $transaction = new BlockTransaction($world); - $this->placeTrunk($x, $y, $z, $random, $this->generateChunkHeight($random), $transaction); + $this->placeTrunk($x, $y, $z, $random, $this->generateTrunkHeight($random), $transaction); $this->placeCanopy($x, $y, $z, $random, $transaction); return $transaction; } - protected function generateChunkHeight(Random $random) : int{ + protected function generateTrunkHeight(Random $random) : int{ return $this->treeHeight - 1; }