mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Fixed unknown blocks dropping themselves
This commit is contained in:
@ -659,13 +659,9 @@ class Block extends Position implements BlockIds, Metadatable{
|
||||
* @return array
|
||||
*/
|
||||
public function getDrops(Item $item){
|
||||
if(!isset(self::$list[$this->getId()])){ //Unknown blocks
|
||||
return [];
|
||||
}else{
|
||||
return [
|
||||
[$this->getItemId(), $this->getDamage(), 1],
|
||||
];
|
||||
}
|
||||
return [
|
||||
[$this->getItemId(), $this->getDamage(), 1],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user