Snow blocks fix

This commit is contained in:
ArkQuark 2021-12-22 17:32:26 +03:00
parent 86cfb923f4
commit c5356edb82
2 changed files with 6 additions and 4 deletions

View file

@ -50,7 +50,7 @@ class SnowLayerBlock extends FlowableBlock{
public function getDrops(Item $item, Player $player){
if($item->isShovel() !== false){
return array(
array(SNOWBALL, 0, 1),
array(SNOWBALL, 0, 2),
);
}
}

View file

@ -26,9 +26,11 @@ class SnowBlock extends SolidBlock{
}
public function getDrops(Item $item, Player $player){
return array(
array(SNOWBALL, 0, 4),
);
if($item->isShovel() !== false){
return array(
array(SNOWBALL, 0, 4),
);
}
}
}