mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
durability is hopefully fixed
This commit is contained in:
parent
629a044053
commit
0c13e4ce1d
6 changed files with 93 additions and 13 deletions
|
|
@ -14,5 +14,22 @@ abstract class ItemHoe extends ItemTool
|
|||
return parent::useOn($object, $force);
|
||||
}
|
||||
}
|
||||
|
||||
public function getLevel(){
|
||||
switch($this->id){
|
||||
case WOODEN_HOE:
|
||||
return 1;
|
||||
case GOLDEN_HOE:
|
||||
return 2;
|
||||
case STONE_HOE:
|
||||
return 3;
|
||||
case IRON_HOE:
|
||||
return 4;
|
||||
case DIAMOND_HOE:
|
||||
return 5;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue