]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/mineral.h
Mode node definition loading from Lua (still not finished), fix metadata creation...
[dragonfireclient.git] / src / mineral.h
index 970ff1f7868773a1cf2d194a0bc085d609eb4d5c..4949fe07ec42cbc6ecd5a15de21ffb06f6e7b1d8 100644 (file)
@@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define MINERAL_HEADER
 
 #include "inventory.h"
-#include "tile.h"
 
 /*
        Minerals
@@ -41,12 +40,14 @@ void init_mineral();
 
 std::string mineral_block_texture(u8 mineral);
 
-inline CraftItem * getDiggedMineralItem(u8 mineral)
+class IGameDef;
+
+inline CraftItem * getDiggedMineralItem(u8 mineral, IGameDef *gamedef)
 {
        if(mineral == MINERAL_COAL)
-               return new CraftItem("lump_of_coal", 1);
+               return new CraftItem(gamedef, "lump_of_coal", 1);
        else if(mineral == MINERAL_IRON)
-               return new CraftItem("lump_of_iron", 1);
+               return new CraftItem(gamedef, "lump_of_iron", 1);
 
        return NULL;
 }