1
0
Fork 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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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));
}
}