diff options
author | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-14 22:35:02 +0100 |
---|---|---|
committer | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-14 22:35:02 +0100 |
commit | f6e16ce15082d867ed182690e3a80435cf60dc84 (patch) | |
tree | bd6cdcbcdac65ad2528ff87829b80181a44516cc /source/Protocol/Protocol17x.cpp | |
parent | fixed XpGetPercentage (diff) | |
download | cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.gz cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.bz2 cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.lz cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.xz cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.zst cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/Protocol17x.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp index 628b8e071..b14c52cba 100644 --- a/source/Protocol/Protocol17x.cpp +++ b/source/Protocol/Protocol17x.cpp @@ -597,6 +597,18 @@ void cProtocol172::SendRespawn(void) +void cProtocol172::SendSetExperience (void) +{ + cPacketizer Pkt(*this, 0x1F); //Experience Packet + Pkt.WriteFloat(m_Client->GetPlayer()->XpGetPercentage()); + Pkt.WriteShort(m_Client->GetPlayer()->XpGetLevel()); + Pkt.WriteShort(m_Client->GetPlayer()->XpGetTotal()); +} + + + + + void cProtocol172::SendSoundEffect(const AString & a_SoundName, int a_SrcX, int a_SrcY, int a_SrcZ, float a_Volume, float a_Pitch) // a_Src coords are Block * 8 { cPacketizer Pkt(*this, 0x29); // Sound Effect packet |