projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a third log output interface method
[oweals/minetest.git]
/
src
/
mineral.h
diff --git
a/src/mineral.h
b/src/mineral.h
index 61776e669c5d7711f4af23aec4c73a16ead74db6..4949fe07ec42cbc6ecd5a15de21ffb06f6e7b1d8 100644
(file)
--- a/
src/mineral.h
+++ b/
src/mineral.h
@@
-40,12
+40,14
@@
void init_mineral();
std::string mineral_block_texture(u8 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)
{
if(mineral == MINERAL_COAL)
- return new CraftItem("lump_of_coal", 1);
+ return new CraftItem(
gamedef,
"lump_of_coal", 1);
else if(mineral == MINERAL_IRON)
else if(mineral == MINERAL_IRON)
- return new CraftItem("lump_of_iron", 1);
+ return new CraftItem(
gamedef,
"lump_of_iron", 1);
return NULL;
}
return NULL;
}