diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-11 01:41:54 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-11 01:41:54 +0200 |
commit | d7b2c534fd2e272c328b176432c922fd11a7cd85 (patch) | |
tree | 8431feefc1a28a05c18eb01c06a22550b7f34d77 /source/Protocol/Protocol132.cpp | |
parent | Second round of fixes (diff) | |
download | cuberite-d7b2c534fd2e272c328b176432c922fd11a7cd85.tar cuberite-d7b2c534fd2e272c328b176432c922fd11a7cd85.tar.gz cuberite-d7b2c534fd2e272c328b176432c922fd11a7cd85.tar.bz2 cuberite-d7b2c534fd2e272c328b176432c922fd11a7cd85.tar.lz cuberite-d7b2c534fd2e272c328b176432c922fd11a7cd85.tar.xz cuberite-d7b2c534fd2e272c328b176432c922fd11a7cd85.tar.zst cuberite-d7b2c534fd2e272c328b176432c922fd11a7cd85.zip |
Diffstat (limited to 'source/Protocol/Protocol132.cpp')
-rw-r--r-- | source/Protocol/Protocol132.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/Protocol/Protocol132.cpp b/source/Protocol/Protocol132.cpp index 63b838b70..53159a3b3 100644 --- a/source/Protocol/Protocol132.cpp +++ b/source/Protocol/Protocol132.cpp @@ -416,7 +416,11 @@ void cProtocol132::SendSpawnMob(const cMonster & a_Mob) WriteShort ((short)(a_Mob.GetSpeedX() * 400)); WriteShort ((short)(a_Mob.GetSpeedY() * 400)); WriteShort ((short)(a_Mob.GetSpeedZ() * 400)); - WriteMetadata(a_Mob); + + WriteCommonMetadata(a_Mob); + WriteMobMetadata(a_Mob); + WriteByte(0x7f); + Flush(); } |