diff options
author | madmaxoft <github@xoft.cz> | 2013-10-13 18:26:45 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-13 18:26:45 +0200 |
commit | e62cac07c0d74ded6109b9221045d65223b05c23 (patch) | |
tree | a1011589b593aa387a434501b40fb99de0d0a502 /source/Protocol/Protocol132.cpp | |
parent | Merge pull request #226 from SamJBarney/master (diff) | |
parent | Eight round of fixes (diff) | |
download | cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.gz cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.bz2 cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.lz cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.xz cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.zst cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.zip |
Diffstat (limited to 'source/Protocol/Protocol132.cpp')
-rw-r--r-- | source/Protocol/Protocol132.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/Protocol/Protocol132.cpp b/source/Protocol/Protocol132.cpp index a06eb0b8b..53159a3b3 100644 --- a/source/Protocol/Protocol132.cpp +++ b/source/Protocol/Protocol132.cpp @@ -416,8 +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)); - AString MetaData = GetEntityMetaData(a_Mob); - SendData (MetaData.data(), MetaData.size()); + + WriteCommonMetadata(a_Mob); + WriteMobMetadata(a_Mob); + WriteByte(0x7f); + Flush(); } |