diff options
author | Lane Kolbly <lane@rscheme.org> | 2017-09-02 18:46:57 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-09-02 18:46:57 +0200 |
commit | aebfbfb8c8d623ded8d409d29983a5e871a475bc (patch) | |
tree | 7c2d46d7c4dceb1aa11bdd905739a54f3846a167 /src/Protocol/Protocol_1_10.cpp | |
parent | Revert "Replace ItemCallbacks with lambdas (#3948)" (diff) | |
download | cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.gz cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.bz2 cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.lz cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.xz cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.zst cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_10.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_10.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_10.cpp b/src/Protocol/Protocol_1_10.cpp index 7f86d4bdc..bb29c58ce 100644 --- a/src/Protocol/Protocol_1_10.cpp +++ b/src/Protocol/Protocol_1_10.cpp @@ -304,7 +304,7 @@ void cProtocol_1_10_0::SendSoundEffect(const AString & a_SoundName, double a_X, { ASSERT(m_State == 3); // In game mode? - cPacketizer Pkt(*this, 0x19); // Named sound effect packet + cPacketizer Pkt(*this, GetPacketId(sendSoundEffect)); // Named sound effect packet Pkt.WriteString(a_SoundName); Pkt.WriteVarInt32(0); // Master sound category (may want to be changed to a parameter later) Pkt.WriteBEInt32(FloorC(a_X * 8.0)); |