Fixes #2041
This commit is contained in:
parent
1632d5f8f1
commit
10c9e66aad
|
@ -2154,10 +2154,10 @@ bool cSlotAreaArmor::CanPlaceArmorInSlot(int a_SlotNum, const cItem & a_Item)
|
||||||
{
|
{
|
||||||
switch (a_SlotNum)
|
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 1: return ItemCategory::IsChestPlate(a_Item.m_ItemType);
|
||||||
case 2: return ItemCategory::IsLeggings (a_Item.m_ItemType);
|
case 2: return ItemCategory::IsLeggings(a_Item.m_ItemType);
|
||||||
case 3: return ItemCategory::IsBoots (a_Item.m_ItemType);
|
case 3: return ItemCategory::IsBoots(a_Item.m_ItemType);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user