Protocol: Fix potion metadata parsing (#4116)
This commit is contained in:
parent
96b72ab88e
commit
533c95d9e2
@ -3128,11 +3128,11 @@ void cProtocol_1_9_0::ParseItemMetadata(cItem & a_Item, const AString & a_Metada
|
|||||||
}
|
}
|
||||||
else if (PotionEffect.find("thick") != AString::npos)
|
else if (PotionEffect.find("thick") != AString::npos)
|
||||||
{
|
{
|
||||||
a_Item.m_ItemDamage = 20;
|
a_Item.m_ItemDamage = 32;
|
||||||
}
|
}
|
||||||
else if (PotionEffect.find("awkward") != AString::npos)
|
else if (PotionEffect.find("awkward") != AString::npos)
|
||||||
{
|
{
|
||||||
a_Item.m_ItemDamage = 10;
|
a_Item.m_ItemDamage = 16;
|
||||||
}
|
}
|
||||||
else if (PotionEffect.find("regeneration") != AString::npos)
|
else if (PotionEffect.find("regeneration") != AString::npos)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user