mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fix for crashes via item (MCPE-1198)
This commit is contained in:
parent
3578b90a39
commit
f1c593d809
4 changed files with 6 additions and 18 deletions
|
|
@ -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),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue