Fixed crash when cactus was updated

This commit is contained in:
Shoghi Cervantes 2014-07-28 14:46:52 +02:00
parent 10c67a57a7
commit e860c339e2

View File

@ -39,7 +39,7 @@ class Cactus extends Transparent{
$down = $this->getSide(0);
if($down->getID() !== self::SAND and $down->getID() !== self::CACTUS){ //Replace with common break method
$this->getLevel()->setBlock($this, new Air(), false);
Server::getInstance()->api->entity->drop($this, Item::get($this->id));
$this->getLevel()->dropItem($this, Item::get($this->id));
return Level::BLOCK_UPDATE_NORMAL;
}