Fixed unknown blocks dropping themselves

This commit is contained in:
Dylan K. Taylor
2017-08-17 13:25:11 +01:00
parent 6320a63ca5
commit f6c31680f6
2 changed files with 9 additions and 7 deletions

View File

@ -23,9 +23,15 @@ declare(strict_types=1);
namespace pocketmine\block;
use pocketmine\item\Item;
class UnknownBlock extends Transparent{
public function getHardness(){
return 0;
}
public function getDrops(Item $item){
return [];
}
}