diff options
author | changyong guo <guo1487@163.com> | 2018-07-23 01:35:32 +0200 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2018-07-23 01:35:32 +0200 |
commit | 7b0db672d1ff72caec1f45cbc0c855680337766d (patch) | |
tree | df2d4d43418ba307983e5be1d2ed4999c786f02a /src/Protocol | |
parent | recover hotbar selected slot after reconnect (#4249) (diff) | |
download | cuberite-7b0db672d1ff72caec1f45cbc0c855680337766d.tar cuberite-7b0db672d1ff72caec1f45cbc0c855680337766d.tar.gz cuberite-7b0db672d1ff72caec1f45cbc0c855680337766d.tar.bz2 cuberite-7b0db672d1ff72caec1f45cbc0c855680337766d.tar.lz cuberite-7b0db672d1ff72caec1f45cbc0c855680337766d.tar.xz cuberite-7b0db672d1ff72caec1f45cbc0c855680337766d.tar.zst cuberite-7b0db672d1ff72caec1f45cbc0c855680337766d.zip |
Diffstat (limited to 'src/Protocol')
-rw-r--r-- | src/Protocol/Protocol_1_8.cpp | 4 | ||||
-rw-r--r-- | src/Protocol/Protocol_1_9.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp index 643f99841..5055526df 100644 --- a/src/Protocol/Protocol_1_8.cpp +++ b/src/Protocol/Protocol_1_8.cpp @@ -947,7 +947,7 @@ void cProtocol_1_8_0::SendPlayerListAddPlayer(const cPlayer & a_Player) } } - Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetGameMode())); + Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetEffectiveGameMode())); Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetClientHandle()->GetPing())); Pkt.WriteBool(false); } @@ -978,7 +978,7 @@ void cProtocol_1_8_0::SendPlayerListUpdateGameMode(const cPlayer & a_Player) Pkt.WriteVarInt32(1); Pkt.WriteVarInt32(1); Pkt.WriteUUID(a_Player.GetUUID()); - Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetGameMode())); + Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetEffectiveGameMode())); } diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp index 2621f140c..73b81580e 100644 --- a/src/Protocol/Protocol_1_9.cpp +++ b/src/Protocol/Protocol_1_9.cpp @@ -992,7 +992,7 @@ void cProtocol_1_9_0::SendPlayerListAddPlayer(const cPlayer & a_Player) } } - Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetGameMode())); + Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetEffectiveGameMode())); Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetClientHandle()->GetPing())); Pkt.WriteBool(false); } @@ -1023,7 +1023,7 @@ void cProtocol_1_9_0::SendPlayerListUpdateGameMode(const cPlayer & a_Player) Pkt.WriteVarInt32(1); Pkt.WriteVarInt32(1); Pkt.WriteUUID(a_Player.GetUUID()); - Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetGameMode())); + Pkt.WriteVarInt32(static_cast<UInt32>(a_Player.GetEffectiveGameMode())); } |