summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorteddydestodes <derkomtur@schattengang.net>2011-06-01 14:11:52 +0200
committerteddydestodes <derkomtur@schattengang.net>2011-06-01 14:11:52 +0200
commit4ddf2bc8a2531e158d63e92325319f21bea9278d (patch)
tree1a28b7a0b2b454354f2dfdab278b51b0cc741f28 /src/inventory.cpp
parent9de57d13bc7a97fba17da5807e1ef57d96586deb (diff)
parent5f52a622b6a2602742ea472c1163eba2acf17fb6 (diff)
downloadminetest-4ddf2bc8a2531e158d63e92325319f21bea9278d.tar.gz
minetest-4ddf2bc8a2531e158d63e92325319f21bea9278d.tar.bz2
minetest-4ddf2bc8a2531e158d63e92325319f21bea9278d.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 47a8d4de9..3f83c7419 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -160,8 +160,12 @@ video::ITexture * CraftItem::getImage()
name = "lump_of_coal.png";
else if(m_subname == "lump_of_iron")
name = "lump_of_iron.png";
+ else if(m_subname == "lump_of_clay")
+ name = "lump_of_clay.png";
else if(m_subname == "steel_ingot")
name = "steel_ingot.png";
+ else if(m_subname == "clay_brick")
+ name = "clay_brick.png";
else if(m_subname == "rat")
name = "rat.png";
else
@@ -199,7 +203,7 @@ u16 CraftItem::getDropCount()
bool CraftItem::isCookable()
{
- if(m_subname == "lump_of_iron")
+ if(m_subname == "lump_of_iron" || m_subname == "lump_of_clay")
{
return true;
}
@@ -212,6 +216,8 @@ InventoryItem *CraftItem::createCookResult()
{
return new CraftItem("steel_ingot", 1);
}
+ else if(m_subname == "lump_of_clay")
+ return new CraftItem("clay_brick", 1);
return NULL;
}