Added Block->getVariantBitmask(0 to cut down on getDrops() boilerplate, fixed several blocks incorrectly retaining meta when broken

This commit is contained in:
Dylan K. Taylor
2017-08-18 19:49:28 +01:00
parent 384a4b3a09
commit 41c6cb6f97
41 changed files with 145 additions and 96 deletions

View File

@ -92,9 +92,7 @@ class EnchantingTable extends Transparent{
public function getDrops(Item $item) : array{
if($item->isPickaxe() >= Tool::TIER_WOODEN){
return [
Item::get($this->getItemId(), 0, 1)
];
return parent::getDrops($item);
}
return [];