mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +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:
@ -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