1
0

Quick fix to make spawn eggs work (#4611)

This commit is contained in:
Mat
2020-04-03 21:56:48 +03:00
committed by GitHub
parent fdee483781
commit 4c6f95f49a

View File

@@ -3238,7 +3238,7 @@ void cProtocol_1_9_0::ParseItemMetadata(cItem & a_Item, const AString & a_Metada
AString NBTName = NBT.GetString(entitytag);
ReplaceString(NBTName, "minecraft:", "");
eMonsterType MonsterType = cMonster::StringToMobType(NBTName);
a_Item.m_ItemDamage = static_cast<short>(MonsterType);
a_Item.m_ItemDamage = static_cast<short>(GetProtocolMobType(MonsterType));
}
}