Fix for crashes via item (MCPE-1198)

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-04 15:02:21 +01:00
parent 3578b90a39
commit f1c593d809
4 changed files with 6 additions and 18 deletions

View file

@ -177,6 +177,9 @@ abstract class Block{
}
public function getDrops(Item $item, Player $player){
if(!isset(Block::$class[$this->id])){ //Unknown blocks
return array();
}
return array(
array($this->id, $this->meta, 1),
);