Merge branch '3.5'

This commit is contained in:
Dylan K. Taylor
2019-01-29 14:05:00 +00:00
4 changed files with 28 additions and 19 deletions

View File

@ -61,7 +61,7 @@ abstract class Crops extends Flowable{
public function onActivate(Item $item, Player $player = null) : bool{
if($item->getId() === Item::DYE and $item->getDamage() === 0x0F){ //Bonemeal
if($this->age < 7 and $item->getId() === Item::DYE and $item->getDamage() === 0x0F){ //Bonemeal
$block = clone $this;
$block->age += mt_rand(2, 5);
if($block->age > 7){