summaryrefslogtreecommitdiff
path: root/src/mineral.h
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2012-01-12 06:10:39 +0100
committerKahrl <kahrl@gmx.net>2012-01-12 06:10:39 +0100
commit6a76c226e10e92c3e3339096f07f8ab065e2098b (patch)
tree396d9083f5f76ebb5ba96df113ba68046c2487df /src/mineral.h
parent569156b01302ea4ba45d11ff5524b62dbc6a9aa0 (diff)
downloadminetest-6a76c226e10e92c3e3339096f07f8ab065e2098b.tar.gz
minetest-6a76c226e10e92c3e3339096f07f8ab065e2098b.tar.bz2
minetest-6a76c226e10e92c3e3339096f07f8ab065e2098b.zip
The huge item definition and item namespace unification patch (itemdef), see http://c55.me/minetest/wiki/doku.php?id=changes:itemdef
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