tweaked drop

This commit is contained in:
GameHerobrine 2023-10-25 17:41:22 +03:00
parent 46ec8a5068
commit ef4b991374
6 changed files with 23 additions and 21 deletions

View file

@ -9,14 +9,14 @@ class CobwebBlock extends FlowableBlock{
}
public function getDrops(Item $item, Player $player){
if ($item->isSword()){
return array(
array(287, 0, 1),
);
return [
[STRING, 0, 1],
];
}
elseif ($item->isShears()){
return array(
array(COBWEB, 0, 1),
);
return [
array(COBWEB, 0, 1),
];
}
}
}

View file

@ -34,5 +34,7 @@ class SnowLayerBlock extends FlowableBlock{
array(SNOWBALL, 0, 1),
);
}
return array();
}
}