mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Tree: renamed generateChunkHeight to generateTrunkHeight
I guess it must have been late at night when I originally wrote this code.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user