Merge pull request #7 from GameHerobrine/test

bonemeal should work on sugarcane now
This commit is contained in:
kotyara 2022-05-11 13:58:01 +00:00 • committed by GitHub
commit a071f577bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@
class SugarcaneBlock extends FlowableBlock{
public function __construct($meta = 0){
parent::__construct(SUGARCANE_BLOCK, $meta, "Sugarcane");
$this->isActivable = true;
$this->hardness = 0;
}
@ -67,7 +68,6 @@ class SugarcaneBlock extends FlowableBlock{
$b = $this->level->getBlock(new Vector3($this->x, $this->y + $y, $this->z));
if($b->getID() === AIR){
$this->level->setBlock($b, new SugarcaneBlock(), true, false, true);
break;
}
}
$this->meta = 0;