summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-04-03 20:56:48 +0200
committerGitHub <noreply@github.com>2020-04-03 20:56:48 +0200
commit4c6f95f49afd9c04c73c62b96c898f32a20cd4ca (patch)
tree39fc8d2c2ac2bec5ef38a9ee3e926823edb24b20 /src/Protocol
parentUpdate Core (diff)
downloadcuberite-4c6f95f49afd9c04c73c62b96c898f32a20cd4ca.tar
cuberite-4c6f95f49afd9c04c73c62b96c898f32a20cd4ca.tar.gz
cuberite-4c6f95f49afd9c04c73c62b96c898f32a20cd4ca.tar.bz2
cuberite-4c6f95f49afd9c04c73c62b96c898f32a20cd4ca.tar.lz
cuberite-4c6f95f49afd9c04c73c62b96c898f32a20cd4ca.tar.xz
cuberite-4c6f95f49afd9c04c73c62b96c898f32a20cd4ca.tar.zst
cuberite-4c6f95f49afd9c04c73c62b96c898f32a20cd4ca.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_9.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp
index d31db7ec4..dbcbce18c 100644
--- a/src/Protocol/Protocol_1_9.cpp
+++ b/src/Protocol/Protocol_1_9.cpp
@@ -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));
}
}