mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09:39 +00:00
Fix bonemeal count not reduced by CocoaBlock (#2773)
This commit is contained in:
parent
12dd6adfcc
commit
8f26c3a2d4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user