summaryrefslogtreecommitdiff
path: root/src/mineral.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mineral.h')
-rw-r--r--src/mineral.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mineral.h b/src/mineral.h
index 4949fe07e..a945d0e02 100644
--- a/src/mineral.h
+++ b/src/mineral.h
@@ -38,19 +38,10 @@ void init_mineral();
#define MINERAL_COUNT 3
-std::string mineral_block_texture(u8 mineral);
-
class IGameDef;
-inline CraftItem * getDiggedMineralItem(u8 mineral, IGameDef *gamedef)
-{
- if(mineral == MINERAL_COAL)
- return new CraftItem(gamedef, "lump_of_coal", 1);
- else if(mineral == MINERAL_IRON)
- return new CraftItem(gamedef, "lump_of_iron", 1);
-
- return NULL;
-}
+std::string mineral_block_texture(u8 mineral);
+ItemStack getDiggedMineralItem(u8 mineral, IGameDef *gamedef);
#endif