summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-24 14:37:36 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-24 14:37:36 +0200
commit10c9e66aad9a0d994c5c227f5dedec4af19db9b2 (patch)
tree8dba26f8d18cce072057ee075184df0d5ec02bcd /src
parentFixes #2003 (diff)
downloadcuberite-10c9e66aad9a0d994c5c227f5dedec4af19db9b2.tar
cuberite-10c9e66aad9a0d994c5c227f5dedec4af19db9b2.tar.gz
cuberite-10c9e66aad9a0d994c5c227f5dedec4af19db9b2.tar.bz2
cuberite-10c9e66aad9a0d994c5c227f5dedec4af19db9b2.tar.lz
cuberite-10c9e66aad9a0d994c5c227f5dedec4af19db9b2.tar.xz
cuberite-10c9e66aad9a0d994c5c227f5dedec4af19db9b2.tar.zst
cuberite-10c9e66aad9a0d994c5c227f5dedec4af19db9b2.zip
Diffstat (limited to 'src')
-rw-r--r--src/UI/SlotArea.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp
index accd44b06..5b58b18b6 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -2154,10 +2154,10 @@ bool cSlotAreaArmor::CanPlaceArmorInSlot(int a_SlotNum, const cItem & a_Item)
{
switch (a_SlotNum)
{
- case 0: return ItemCategory::IsHelmet (a_Item.m_ItemType);
+ case 0: return (ItemCategory::IsHelmet(a_Item.m_ItemType) || (a_Item.m_ItemType == E_BLOCK_PUMPKIN));
case 1: return ItemCategory::IsChestPlate(a_Item.m_ItemType);
- case 2: return ItemCategory::IsLeggings (a_Item.m_ItemType);
- case 3: return ItemCategory::IsBoots (a_Item.m_ItemType);
+ case 2: return ItemCategory::IsLeggings(a_Item.m_ItemType);
+ case 3: return ItemCategory::IsBoots(a_Item.m_ItemType);
}
return false;
}