summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-10-08 23:21:55 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-10-08 23:21:55 +0200
commit7401fc000dca2a3ff3ce61776f84e5c2d8eb1868 (patch)
tree4ba096c6fa039b527139b06b97615906a023e048 /source/Protocol/Protocol125.cpp
parentInitial Metadata Commit [SEE DESC] (diff)
downloadcuberite-7401fc000dca2a3ff3ce61776f84e5c2d8eb1868.tar
cuberite-7401fc000dca2a3ff3ce61776f84e5c2d8eb1868.tar.gz
cuberite-7401fc000dca2a3ff3ce61776f84e5c2d8eb1868.tar.bz2
cuberite-7401fc000dca2a3ff3ce61776f84e5c2d8eb1868.tar.lz
cuberite-7401fc000dca2a3ff3ce61776f84e5c2d8eb1868.tar.xz
cuberite-7401fc000dca2a3ff3ce61776f84e5c2d8eb1868.tar.zst
cuberite-7401fc000dca2a3ff3ce61776f84e5c2d8eb1868.zip
Diffstat (limited to 'source/Protocol/Protocol125.cpp')
-rw-r--r--source/Protocol/Protocol125.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp
index 89b2c15ec..e2309c295 100644
--- a/source/Protocol/Protocol125.cpp
+++ b/source/Protocol/Protocol125.cpp
@@ -1638,11 +1638,11 @@ void cProtocol125::WriteMetadata(const cEntity & a_Entity)
}
if (a_Entity.IsRclking())
{
- CommonMetadata |= 0x16;
+ CommonMetadata |= 0x10;
}
if (a_Entity.IsInvisible())
{
- CommonMetadata |= 0x32;
+ CommonMetadata |= 0x20;
}
WriteByte(0x0);
@@ -1691,7 +1691,7 @@ void cProtocol125::WriteMetadata(const cEntity & a_Entity)
else if (a_Entity.IsA("cZombie"))
{
WriteByte(0xC);
- WriteByte(a_Entity.IsBabby() ? 1 : 0); // Babby zombie?
+ WriteByte(a_Entity.IsBaby() ? 1 : 0); // Babby zombie?
WriteByte(0xD);
WriteByte(a_Entity.IsVillZomb() ? 1 : 0); // Converted zombie?
WriteByte(0xE);
@@ -1784,7 +1784,7 @@ void cProtocol125::WriteMetadata(const cEntity & a_Entity)
{
Flags |= 0x8;
}
- if (a_Entity.IsBabby())
+ if (a_Entity.IsBaby())
{
Flags |= 0x10; // IsBred flag, according to wiki.vg - don't think it does anything in multiplayer
}