Fix bonemeal count not reduced by CocoaBlock (#2773)

This commit is contained in:
SalmonDE 2019-02-18 17:31:07 +01:00 committed by Dylan T
parent 12dd6adfcc
commit 8f26c3a2d4

View File

@ -98,7 +98,12 @@ class CocoaBlock extends Transparent{
if($this->age < 2 and $item->getId() === Item::DYE and $item->getDamage() === 15){ //bone meal
$this->age++;
$this->level->setBlock($this, $this);
$item->pop();
return true;
}
return false;
}