diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-10-02 15:22:17 +0200 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2020-10-03 17:54:14 +0200 |
commit | 21068011c6d8a4794eec86794d6b9612a265f03a (patch) | |
tree | f8c6bf1d8760a02945c0622ff2d237ff3b737030 /src/Protocol/Protocol_1_8.cpp | |
parent | Fix instant mining of blocks not being recognised, tweak anti-cheat (#4938) (diff) | |
download | cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.gz cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.bz2 cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.lz cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.xz cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.zst cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_8.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_8.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp index c6b21fc3d..ae3137eb6 100644 --- a/src/Protocol/Protocol_1_8.cpp +++ b/src/Protocol/Protocol_1_8.cpp @@ -1694,13 +1694,13 @@ void cProtocol_1_8_0::SendWindowOpen(const cWindow & a_Window) -void cProtocol_1_8_0::SendWindowProperty(const cWindow & a_Window, short a_Property, short a_Value) +void cProtocol_1_8_0::SendWindowProperty(const cWindow & a_Window, size_t a_Property, short a_Value) { ASSERT(m_State == 3); // In game mode? cPacketizer Pkt(*this, pktWindowProperty); Pkt.WriteBEUInt8(static_cast<UInt8>(a_Window.GetWindowID())); - Pkt.WriteBEInt16(a_Property); + Pkt.WriteBEInt16(static_cast<Int16>(a_Property)); Pkt.WriteBEInt16(a_Value); } |