From 8f26c3a2d44047b94e0e143eaea90d4c35106564 Mon Sep 17 00:00:00 2001 From: SalmonDE Date: Mon, 18 Feb 2019 17:31:07 +0100 Subject: [PATCH] Fix bonemeal count not reduced by CocoaBlock (#2773) --- src/pocketmine/block/CocoaBlock.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pocketmine/block/CocoaBlock.php b/src/pocketmine/block/CocoaBlock.php index 72fdb5a52..fc82079bb 100644 --- a/src/pocketmine/block/CocoaBlock.php +++ b/src/pocketmine/block/CocoaBlock.php @@ -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; }