better break time checks, added block materials

This commit is contained in:
GameHerobrine 2025-06-14 07:56:10 +03:00
parent 71da620aa3
commit 625e9ca71f
143 changed files with 496 additions and 54 deletions

View file

@ -16,5 +16,12 @@ abstract class ItemAxe extends ItemTool
default => false,
};
}
public function getDestroySpeed($id, $meta){
$effMult = ItemTool::TIER_EFFICIENCY_MULTIPLIER[$this->getLevel()] ?? ItemTool::TIER_EFFICIENCY_MULTIPLIER[0];
$mat = StaticBlock::getMaterial($id);
if($mat == Material::$wood) return $effMult;
return parent::getDestroySpeed($id, $meta);
}
}