summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol_1_9.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp
index b6fa567fd..b6dba378b 100644
--- a/src/Protocol/Protocol_1_9.cpp
+++ b/src/Protocol/Protocol_1_9.cpp
@@ -3265,19 +3265,13 @@ void cProtocol_1_9_0::ParseItemMetadata(cItem & a_Item, const AString & a_Metada
continue;
}
- if (PotionEffect.find("water") != AString::npos)
- {
- a_Item.m_ItemDamage = 0;
- // Water bottles shouldn't have other bits set on them; exit early.
- continue;
- }
if (PotionEffect.find("empty") != AString::npos)
{
a_Item.m_ItemDamage = 0;
}
else if (PotionEffect.find("mundane") != AString::npos)
{
- a_Item.m_ItemDamage = 0;
+ a_Item.m_ItemDamage = 64;
}
else if (PotionEffect.find("thick") != AString::npos)
{
@@ -3339,6 +3333,12 @@ void cProtocol_1_9_0::ParseItemMetadata(cItem & a_Item, const AString & a_Metada
{
a_Item.m_ItemDamage = 14;
}
+ else if (PotionEffect.find("water") != AString::npos)
+ {
+ a_Item.m_ItemDamage = 0;
+ // Water bottles shouldn't have other bits set on them; exit early.
+ continue;
+ }
else
{
// Note: luck potions are not handled and will reach this location