Added API method Block->getVariant()

This commit is contained in:
Dylan K. Taylor
2017-09-26 19:35:04 +01:00
parent 78af87a572
commit 992c4ce6a0
3 changed files with 11 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class WoodenStairs extends Stair{
public function getDrops(Item $item) : array{
//TODO: Hierarchy problem (base class is for stone stairs)
return [
ItemFactory::get($this->getItemId(), $this->getDamage() & $this->getVariantBitmask(), 1)
ItemFactory::get($this->getItemId(), $this->getVariant(), 1)
];
}
}