mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +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:
parent
beba0ffe15
commit
6c1fec8a29
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user