From 3eaab7354097616fc451023b72e540e430d228ce Mon Sep 17 00:00:00 2001 From: Mat Date: Sat, 4 Apr 2020 17:16:36 +0300 Subject: Potion changes (#4601) * Correct protocol translation for potions * Update brewing recipes --- src/Protocol/Protocol_1_9.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/Protocol/Protocol_1_9.cpp') 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 -- cgit v1.2.3