diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-25 11:54:36 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-25 11:54:36 +0200 |
commit | fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd (patch) | |
tree | 1529d406bbbc97b1f1da6e2d0d1cccc7f1be5d9c /source/Protocol/Protocol132.cpp | |
parent | Sockets are now owned by SocketThreads instead of ClientHandle (FS #246 and FS #247) (diff) | |
download | cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.gz cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.bz2 cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.lz cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.xz cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.zst cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.zip |
Diffstat (limited to 'source/Protocol/Protocol132.cpp')
-rw-r--r-- | source/Protocol/Protocol132.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/source/Protocol/Protocol132.cpp b/source/Protocol/Protocol132.cpp index a39697526..d8c9f1f27 100644 --- a/source/Protocol/Protocol132.cpp +++ b/source/Protocol/Protocol132.cpp @@ -61,7 +61,8 @@ enum PACKET_CHUNK_DATA = 0x33,
PACKET_BLOCK_CHANGE = 0x35,
PACKET_BLOCK_ACTION = 0x36,
- PACKET_SOUND_EFFECT = 0x3e
+ PACKET_BLOCK_BREAK_ANIM = 0x37,
+ PACKET_SOUND_EFFECT = 0x3e
} ;
@@ -349,6 +350,22 @@ void cProtocol132::SendSoundEffect(const AString & a_SoundName, int a_SrcX, int +void cProtocol132::SendBlockBreakAnim(int a_entityID, int a_BlockX, int a_BlockY, int a_BlockZ, char stage)
+{
+ cCSLock Lock(m_CSPacket);
+ WriteByte (PACKET_BLOCK_BREAK_ANIM);
+ WriteInt (a_entityID);
+ WriteInt (a_BlockX);
+ WriteInt (a_BlockY);
+ WriteInt (a_BlockZ);
+ WriteByte (stage);
+ Flush();
+}
+
+
+
+
+
void cProtocol132::SendSpawnMob(const cMonster & a_Mob)
{
cCSLock Lock(m_CSPacket);
|