From 34cd4790ed296d38323406facd96e8dafa5d8c02 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Thu, 11 May 2017 21:24:28 +0200 Subject: [PATCH] #12 Removing Sakura Bushes. --- src/Ad5001/BetterGen/structure/SakuraTree.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ad5001/BetterGen/structure/SakuraTree.php b/src/Ad5001/BetterGen/structure/SakuraTree.php index d32da10..cd7700b 100644 --- a/src/Ad5001/BetterGen/structure/SakuraTree.php +++ b/src/Ad5001/BetterGen/structure/SakuraTree.php @@ -446,7 +446,8 @@ class SakuraTree extends Tree { */ public function __construct() { $this->trunkBlock = Block::LOG; - $this->leafBlock = Block::WOOL; + $this->leafBlock = Block::AIR; // To remove bushes + $this->realLeafBlock = Block::WOOL; $this->leafType = 6; $this->leaf2Type = 0; $this->type = Wood::OAK; @@ -668,7 +669,7 @@ class SakuraTree extends Tree { $this->leafType, $this->leaf2Type ] [( int ) $random->nextBoolean ()]; - $level->setBlockIdAt($x, $y, $z, $this->leafBlock); + $level->setBlockIdAt($x, $y, $z, $this->realLeafBlock); $level->setBlockDataAt($x, $y, $z, $data); } } \ No newline at end of file