Fixed cobweb drops

This commit is contained in:
Dylan K. Taylor 2017-12-13 14:46:58 +00:00
parent 4452e6ac93
commit 90eed14cd6

View File

@ -25,6 +25,7 @@ namespace pocketmine\block;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\item\ItemFactory;
class Cobweb extends Flowable{ class Cobweb extends Flowable{
@ -59,8 +60,9 @@ class Cobweb extends Flowable{
} }
public function getDropsForCompatibleTool(Item $item) : array{ public function getDropsForCompatibleTool(Item $item) : array{
//TODO: correct drops return [
return []; ItemFactory::get(Item::STRING)
];
} }
public function diffusesSkyLight() : bool{ public function diffusesSkyLight() : bool{