summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-12-15 22:53:23 +0100
committerworktycho <work.tycho@gmail.com>2015-12-15 22:53:23 +0100
commit83418e1d7a31e247b0d7892e75e70abc14b9aad8 (patch)
treebd391b7fe84756a5290f0ee0a28ab318a3a47728 /src/Protocol
parentMerge pull request #2750 from cuberite/wrng (diff)
parentallow horse control (still quite buggy) (diff)
downloadcuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.gz
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.bz2
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.lz
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.xz
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.zst
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol18x.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp
index 833746c00..ad2964bed 100644
--- a/src/Protocol/Protocol18x.cpp
+++ b/src/Protocol/Protocol18x.cpp
@@ -2486,8 +2486,8 @@ void cProtocol180::HandlePacketSlotSelect(cByteBuffer & a_ByteBuffer)
void cProtocol180::HandlePacketSteerVehicle(cByteBuffer & a_ByteBuffer)
{
- HANDLE_READ(a_ByteBuffer, ReadBEFloat, float, Forward);
HANDLE_READ(a_ByteBuffer, ReadBEFloat, float, Sideways);
+ HANDLE_READ(a_ByteBuffer, ReadBEFloat, float, Forward);
HANDLE_READ(a_ByteBuffer, ReadBEUInt8, UInt8, Flags);
if ((Flags & 0x2) != 0)
@@ -2496,6 +2496,10 @@ void cProtocol180::HandlePacketSteerVehicle(cByteBuffer & a_ByteBuffer)
}
else if ((Flags & 0x1) != 0)
{
+ // jump
+ }
+ else
+ {
m_Client->HandleSteerVehicle(Forward, Sideways);
}
}