stonecutter will drop only if destroyed with pick

This commit is contained in:
GameHerobrine 2023-10-08 20:46:31 +03:00
parent da446ff7f7
commit 6d487fb4b0
4 changed files with 16 additions and 4 deletions

View file

@ -23,7 +23,7 @@ class IronOreBlock extends SolidBlock{
}
public function getDrops(Item $item, Player $player){
if($item->getPickaxeLevel() >= 3){
if($item->getPickaxeLevel() >= ItemTool::STONE_LEVEL){
return array(
array(IRON_ORE, 0, 1),
);