summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemPickaxe.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-08 16:14:22 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-08 16:14:22 +0100
commitc4c58c71fb0d38c2b13752810db0f52ba07c0af0 (patch)
tree0cc1bb8bd0fa5655bd86c6befaa71fec885da665 /src/Items/ItemPickaxe.h
parentTurned on Werror (diff)
parentMerge branch 'master' into warnings (diff)
downloadcuberite-c4c58c71fb0d38c2b13752810db0f52ba07c0af0.tar
cuberite-c4c58c71fb0d38c2b13752810db0f52ba07c0af0.tar.gz
cuberite-c4c58c71fb0d38c2b13752810db0f52ba07c0af0.tar.bz2
cuberite-c4c58c71fb0d38c2b13752810db0f52ba07c0af0.tar.lz
cuberite-c4c58c71fb0d38c2b13752810db0f52ba07c0af0.tar.xz
cuberite-c4c58c71fb0d38c2b13752810db0f52ba07c0af0.tar.zst
cuberite-c4c58c71fb0d38c2b13752810db0f52ba07c0af0.zip
Diffstat (limited to 'src/Items/ItemPickaxe.h')
-rw-r--r--src/Items/ItemPickaxe.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Items/ItemPickaxe.h b/src/Items/ItemPickaxe.h
index bde7f0905..2a8e40daa 100644
--- a/src/Items/ItemPickaxe.h
+++ b/src/Items/ItemPickaxe.h
@@ -19,17 +19,13 @@ public:
{
switch(m_ItemType)
{
- case E_ITEM_WOODEN_PICKAXE:
- case E_ITEM_GOLD_PICKAXE:
- return 1;
- case E_ITEM_STONE_PICKAXE:
- return 2;
- case E_ITEM_IRON_PICKAXE:
- return 3;
- case E_ITEM_DIAMOND_PICKAXE:
- return 4;
- default:
- return 0;
+ case E_ITEM_WOODEN_PICKAXE: return 1;
+ case E_ITEM_GOLD_PICKAXE: return 1;
+ case E_ITEM_STONE_PICKAXE: return 2;
+ case E_ITEM_IRON_PICKAXE: return 3;
+ case E_ITEM_DIAMOND_PICKAXE: return 4;
+
+ default: return 0;
}
}
@@ -61,6 +57,10 @@ public:
return PickaxeLevel() >= 2;
}
+ case E_BLOCK_ANVIL:
+ case E_BLOCK_ENCHANTMENT_TABLE:
+ case E_BLOCK_FURNACE:
+ case E_BLOCK_LIT_FURNACE:
case E_BLOCK_COAL_ORE:
case E_BLOCK_STONE:
case E_BLOCK_COBBLESTONE: