durability is hopefully fixed

This commit is contained in:
GameHerobrine 2023-01-13 01:08:38 +03:00
parent 629a044053
commit 0c13e4ce1d
6 changed files with 93 additions and 13 deletions

View file

@ -6,6 +6,21 @@ abstract class ItemAxe extends ItemTool
return true;
}
public function getLevel(){
switch($this->id){
case WOODEN_AXE:
return 1;
case GOLDEN_AXE:
return 2;
case STONE_AXE:
return 3;
case IRON_AXE:
return 4;
case DIAMOND_AXE:
return 5;
default:
return false;
}
}
}