Merge branch 'release/3.3'

This commit is contained in:
Dylan K. Taylor
2018-10-05 18:29:37 +01:00
12 changed files with 36 additions and 31 deletions

View File

@ -82,8 +82,8 @@ class NetherWartPlant extends Flowable{
if($this->age < 3 and mt_rand(0, 10) === 0){ //Still growing
$block = clone $this;
$block->age++;
$this->getLevel()->getServer()->getPluginManager()->callEvent($ev = new BlockGrowEvent($this, $block));
$ev = new BlockGrowEvent($this, $block);
$ev->call();
if(!$ev->isCancelled()){
$this->getLevel()->setBlock($this, $ev->getNewState());
}