Fixed missing variant bitmask for Leaves, close #1478

This commit is contained in:
Dylan K. Taylor 2017-10-20 18:37:46 +01:00
parent 7b04049bb7
commit ba3fe20227

View File

@ -169,10 +169,14 @@ class Leaves extends Transparent{
return $this->getLevel()->setBlock($this, $this, true);
}
public function getVariantBitmask() : int{
return 0x03;
}
public function getDrops(Item $item) : array{
$drops = [];
$variantMeta = $this->getDamage() & 0x03;
$variantMeta = $this->getVariant();
if($item->isShears()){
$drops[] = ItemFactory::get($this->getItemId(), $variantMeta, 1);