Fixed being able to mine double stone slabs without a pickaxe

This commit is contained in:
Dylan K. Taylor 2017-12-13 11:34:41 +00:00
parent 015cde2169
commit 50f3231629

View File

@ -38,7 +38,7 @@ abstract class DoubleSlab extends Solid{
return "Double " . BlockFactory::get($this->getSlabId(), $this->getVariant())->getName() . " Slab";
}
public function getDrops(Item $item) : array{
public function getDropsForCompatibleTool(Item $item) : array{
return [
ItemFactory::get($this->getSlabId(), $this->getVariant(), 2)
];