summaryrefslogtreecommitdiffstats
path: root/source/Items
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-08-09 10:06:30 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-08-09 10:06:30 +0200
commit6f2c099f707eb1f9429ca685725e9c0aef273d7c (patch)
tree5763e0d8fa66b9a3e27517570375bc67b3654176 /source/Items
parentFixed a copypasta error in hook function names. (diff)
parentFixed some formatting issues I accidentally introduced (diff)
downloadcuberite-6f2c099f707eb1f9429ca685725e9c0aef273d7c.tar
cuberite-6f2c099f707eb1f9429ca685725e9c0aef273d7c.tar.gz
cuberite-6f2c099f707eb1f9429ca685725e9c0aef273d7c.tar.bz2
cuberite-6f2c099f707eb1f9429ca685725e9c0aef273d7c.tar.lz
cuberite-6f2c099f707eb1f9429ca685725e9c0aef273d7c.tar.xz
cuberite-6f2c099f707eb1f9429ca685725e9c0aef273d7c.tar.zst
cuberite-6f2c099f707eb1f9429ca685725e9c0aef273d7c.zip
Diffstat (limited to 'source/Items')
-rw-r--r--source/Items/ItemFood.h1
-rw-r--r--source/Items/ItemHandler.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/source/Items/ItemFood.h b/source/Items/ItemFood.h
index 6434f3dc7..2ae572331 100644
--- a/source/Items/ItemFood.h
+++ b/source/Items/ItemFood.h
@@ -50,6 +50,7 @@ public:
case E_ITEM_ROTTEN_FLESH: return FoodInfo(4, 0.8, 80);
case E_ITEM_SPIDER_EYE: return FoodInfo(2, 3.2, 100);
case E_ITEM_STEAK: return FoodInfo(8, 12.8);
+ case E_ITEM_MUSHROOM_SOUP: return FoodInfo(6, 7.2);
}
LOGWARNING("%s: Unknown food item (%d), returning zero nutrition", __FUNCTION__, m_ItemType);
return FoodInfo(0, 0.f);
diff --git a/source/Items/ItemHandler.cpp b/source/Items/ItemHandler.cpp
index c81916f5f..f3f4ac6e7 100644
--- a/source/Items/ItemHandler.cpp
+++ b/source/Items/ItemHandler.cpp
@@ -181,6 +181,7 @@ cItemHandler *cItemHandler::CreateItemHandler(int a_ItemType)
case E_ITEM_RED_APPLE:
case E_ITEM_GOLDEN_APPLE:
case E_ITEM_ROTTEN_FLESH:
+ case E_ITEM_MUSHROOM_SOUP:
case E_ITEM_SPIDER_EYE:
{
return new cItemFoodHandler(a_ItemType);