Fixed incorrect drops for Cobweb (#4759)

This commit is contained in:
Rush2929 2022-01-26 09:25:00 +09:00 committed by GitHub
parent 1dbfedce4c
commit 3155c90396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,9 @@ class Cobweb extends Flowable{
}
public function getDropsForCompatibleTool(Item $item) : array{
if(($item->getBlockToolType() & BlockToolType::SHEARS) !== 0){
return [$this->asItem()];
}
return [
VanillaItems::STRING()
];