#12 Removing Sakura Bushes.
This commit is contained in:
parent
8311298fbc
commit
34cd4790ed
1 changed files with 3 additions and 2 deletions
|
@ -446,7 +446,8 @@ class SakuraTree extends Tree {
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->trunkBlock = Block::LOG;
|
$this->trunkBlock = Block::LOG;
|
||||||
$this->leafBlock = Block::WOOL;
|
$this->leafBlock = Block::AIR; // To remove bushes
|
||||||
|
$this->realLeafBlock = Block::WOOL;
|
||||||
$this->leafType = 6;
|
$this->leafType = 6;
|
||||||
$this->leaf2Type = 0;
|
$this->leaf2Type = 0;
|
||||||
$this->type = Wood::OAK;
|
$this->type = Wood::OAK;
|
||||||
|
@ -668,7 +669,7 @@ class SakuraTree extends Tree {
|
||||||
$this->leafType,
|
$this->leafType,
|
||||||
$this->leaf2Type
|
$this->leaf2Type
|
||||||
] [( int ) $random->nextBoolean ()];
|
] [( int ) $random->nextBoolean ()];
|
||||||
$level->setBlockIdAt($x, $y, $z, $this->leafBlock);
|
$level->setBlockIdAt($x, $y, $z, $this->realLeafBlock);
|
||||||
$level->setBlockDataAt($x, $y, $z, $data);
|
$level->setBlockDataAt($x, $y, $z, $data);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue