mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
fixed break time of wooden slabs and stairs
This commit is contained in:
parent
15740c3e53
commit
c4b7012fe9
3 changed files with 9 additions and 3 deletions
|
|
@ -90,7 +90,9 @@ class WoodSlabBlock extends TransparentBlock{
|
||||||
if(($player->gamemode & 0x01) === 0x01){
|
if(($player->gamemode & 0x01) === 0x01){
|
||||||
return 0.20;
|
return 0.20;
|
||||||
}
|
}
|
||||||
return match ($item->isAxe()) {
|
if(!$item->isAxe()) return 3;
|
||||||
|
|
||||||
|
return match ($item->getLevel()) {
|
||||||
5 => 0.4,
|
5 => 0.4,
|
||||||
4 => 0.5,
|
4 => 0.5,
|
||||||
3 => 0.75,
|
3 => 0.75,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@ class WoodStairsBlock extends StairBlock{
|
||||||
if(($player->gamemode & 0x01) === 0x01){
|
if(($player->gamemode & 0x01) === 0x01){
|
||||||
return 0.20;
|
return 0.20;
|
||||||
}
|
}
|
||||||
return match ($item->isAxe()) {
|
if(!$item->isAxe()) return 3;
|
||||||
|
|
||||||
|
return match ($item->getLevel()) {
|
||||||
5 => 0.4,
|
5 => 0.4,
|
||||||
4 => 0.5,
|
4 => 0.5,
|
||||||
3 => 0.75,
|
3 => 0.75,
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@ class DoubleWoodSlabBlock extends SolidBlock{
|
||||||
if(($player->gamemode & 0x01) === 0x01){
|
if(($player->gamemode & 0x01) === 0x01){
|
||||||
return 0.20;
|
return 0.20;
|
||||||
}
|
}
|
||||||
return match ($item->isAxe()) {
|
if(!$item->isAxe()) return 3;
|
||||||
|
|
||||||
|
return match ($item->getLevel()) {
|
||||||
5 => 0.4,
|
5 => 0.4,
|
||||||
4 => 0.5,
|
4 => 0.5,
|
||||||
3 => 0.75,
|
3 => 0.75,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue