summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_9.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-05-04 12:50:02 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-05-04 14:29:56 +0200
commiteb3ca16921080b1496d2e71de95ce533929241e1 (patch)
treee1dc67df2493c8e36ea34f473f4184e0576c0440 /src/Protocol/Protocol_1_9.cpp
parentFix incorrect formatter invocation (diff)
downloadcuberite-eb3ca16921080b1496d2e71de95ce533929241e1.tar
cuberite-eb3ca16921080b1496d2e71de95ce533929241e1.tar.gz
cuberite-eb3ca16921080b1496d2e71de95ce533929241e1.tar.bz2
cuberite-eb3ca16921080b1496d2e71de95ce533929241e1.tar.lz
cuberite-eb3ca16921080b1496d2e71de95ce533929241e1.tar.xz
cuberite-eb3ca16921080b1496d2e71de95ce533929241e1.tar.zst
cuberite-eb3ca16921080b1496d2e71de95ce533929241e1.zip
Diffstat (limited to 'src/Protocol/Protocol_1_9.cpp')
-rw-r--r--src/Protocol/Protocol_1_9.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp
index 150e81339..ff62df242 100644
--- a/src/Protocol/Protocol_1_9.cpp
+++ b/src/Protocol/Protocol_1_9.cpp
@@ -58,9 +58,6 @@ Implements the 1.9 protocol classes:
-/** The slot number that the client uses to indicate "outside the window". */
-static const Int16 SLOT_NUM_OUTSIDE = -999;
-
/** Value for main hand in Hand parameter for Protocol 1.9. */
static const UInt32 MAIN_HAND = 0;
static const UInt32 OFF_HAND = 1;
@@ -1034,6 +1031,9 @@ void cProtocol_1_9_0::HandlePacketWindowClick(cByteBuffer & a_ByteBuffer)
cItem Item;
ReadItem(a_ByteBuffer, Item);
+ /** The slot number that the client uses to indicate "outside the window". */
+ static const Int16 SLOT_NUM_OUTSIDE = -999;
+
// Convert Button, Mode, SlotNum and HeldItem into eClickAction:
eClickAction Action;
switch ((Mode << 8) | Button)