fixed break time of wooden slabs and stairs

This commit is contained in:
GameHerobrine 2025-05-11 18:04:32 +03:00
parent 15740c3e53
commit c4b7012fe9
3 changed files with 9 additions and 3 deletions

View file

@ -90,7 +90,9 @@ class WoodSlabBlock extends TransparentBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->isAxe()) {
if(!$item->isAxe()) return 3;
return match ($item->getLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,

View file

@ -10,7 +10,9 @@ class WoodStairsBlock extends StairBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->isAxe()) {
if(!$item->isAxe()) return 3;
return match ($item->getLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,

View file

@ -18,7 +18,9 @@ class DoubleWoodSlabBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->isAxe()) {
if(!$item->isAxe()) return 3;
return match ($item->getLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,