summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol18x.cpp
diff options
context:
space:
mode:
authorGargaj <gargaj@conspiracy.hu>2015-12-15 21:11:58 +0100
committerGargaj <gargaj@conspiracy.hu>2015-12-15 21:14:27 +0100
commit68ff0edfde8d2c81e92e7b1334f8e9f19f4517d9 (patch)
treebd391b7fe84756a5290f0ee0a28ab318a3a47728 /src/Protocol/Protocol18x.cpp
parentMerge pull request #2750 from cuberite/wrng (diff)
downloadcuberite-68ff0edfde8d2c81e92e7b1334f8e9f19f4517d9.tar
cuberite-68ff0edfde8d2c81e92e7b1334f8e9f19f4517d9.tar.gz
cuberite-68ff0edfde8d2c81e92e7b1334f8e9f19f4517d9.tar.bz2
cuberite-68ff0edfde8d2c81e92e7b1334f8e9f19f4517d9.tar.lz
cuberite-68ff0edfde8d2c81e92e7b1334f8e9f19f4517d9.tar.xz
cuberite-68ff0edfde8d2c81e92e7b1334f8e9f19f4517d9.tar.zst
cuberite-68ff0edfde8d2c81e92e7b1334f8e9f19f4517d9.zip
Diffstat (limited to '')
-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);
}
}