diff options
author | Dave Tucker <dave@dtucker.co.uk> | 2015-11-24 00:39:19 +0100 |
---|---|---|
committer | Dave Tucker <dave@dtucker.co.uk> | 2015-11-24 14:21:40 +0100 |
commit | 83870f9fc0e19da646f408a2d6636adfe4b5c002 (patch) | |
tree | d63858a16962f83d68620bc55c8efeed126874a6 /src/Protocol/Protocol18x.cpp | |
parent | Merge pull request #2645 from Gargaj/followedarray (diff) | |
download | cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.gz cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.bz2 cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.lz cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.xz cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.zst cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.zip |
Diffstat (limited to 'src/Protocol/Protocol18x.cpp')
-rw-r--r-- | src/Protocol/Protocol18x.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp index 15dd085be..17b4dc6fd 100644 --- a/src/Protocol/Protocol18x.cpp +++ b/src/Protocol/Protocol18x.cpp @@ -19,6 +19,7 @@ Implements the 1.8.x protocol classes: #include "../Root.h" #include "../Server.h" #include "../World.h" +#include "../EffectID.h" #include "../StringCompression.h" #include "../CompositeChat.h" #include "../Statistics.h" @@ -1234,12 +1235,12 @@ void cProtocol180::SendSoundEffect(const AString & a_SoundName, double a_X, doub -void cProtocol180::SendSoundParticleEffect(int a_EffectID, int a_SrcX, int a_SrcY, int a_SrcZ, int a_Data) +void cProtocol180::SendSoundParticleEffect(const EffectID a_EffectID, int a_SrcX, int a_SrcY, int a_SrcZ, int a_Data) { ASSERT(m_State == 3); // In game mode? cPacketizer Pkt(*this, 0x28); // Effect packet - Pkt.WriteBEInt32(a_EffectID); + Pkt.WriteBEInt32(static_cast<int>(a_EffectID)); Pkt.WritePosition64(a_SrcX, a_SrcY, a_SrcZ); Pkt.WriteBEInt32(a_Data); Pkt.WriteBool(false); |