mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Fixed #270 Blocks that need to be broken with a pickaxe now give correct drops & items
This commit is contained in:
parent
713f16771f
commit
47b54cfd28
30 changed files with 636 additions and 31 deletions
|
|
@ -108,15 +108,15 @@ class Item{
|
|||
final public function isPickaxe(){ //Returns false or level of the pickaxe
|
||||
switch($this->id){
|
||||
case IRON_PICKAXE:
|
||||
return 3;
|
||||
return 4;
|
||||
case WOODEN_PICKAXE:
|
||||
return 1;
|
||||
case STONE_PICKAXE:
|
||||
return 2;
|
||||
case DIAMOND_PICKAXE:
|
||||
return 4;
|
||||
case GOLD_PICKAXE:
|
||||
return 3;
|
||||
case DIAMOND_PICKAXE:
|
||||
return 5;
|
||||
case GOLD_PICKAXE:
|
||||
return 2;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue