summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_9.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-05-15 18:04:53 +0200
committerLukas Pioch <lukas@zgow.de>2017-05-15 18:04:53 +0200
commitf0a16e6d280eea3b3c4f11286a1d2a08b6469368 (patch)
treebc632a8199850d633aa6916c5551853af439fabe /src/Protocol/Protocol_1_9.cpp
parentDoxygen: added icon, autobrief. (diff)
downloadcuberite-f0a16e6d280eea3b3c4f11286a1d2a08b6469368.tar
cuberite-f0a16e6d280eea3b3c4f11286a1d2a08b6469368.tar.gz
cuberite-f0a16e6d280eea3b3c4f11286a1d2a08b6469368.tar.bz2
cuberite-f0a16e6d280eea3b3c4f11286a1d2a08b6469368.tar.lz
cuberite-f0a16e6d280eea3b3c4f11286a1d2a08b6469368.tar.xz
cuberite-f0a16e6d280eea3b3c4f11286a1d2a08b6469368.tar.zst
cuberite-f0a16e6d280eea3b3c4f11286a1d2a08b6469368.zip
Diffstat (limited to '')
-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 1d014d741..0b369f865 100644
--- a/src/Protocol/Protocol_1_9.cpp
+++ b/src/Protocol/Protocol_1_9.cpp
@@ -3674,11 +3674,11 @@ void cProtocol_1_9_0::WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a
a_Pkt.WriteBEInt8(5); // Index 6: Time since last hit
a_Pkt.WriteBEInt8(METADATA_TYPE_VARINT);
- a_Pkt.WriteBEInt32(Boat.GetLastDamage());
+ a_Pkt.WriteVarInt32(static_cast<UInt32>(Boat.GetLastDamage()));
a_Pkt.WriteBEInt8(6); // Index 7: Forward direction
a_Pkt.WriteBEInt8(METADATA_TYPE_VARINT);
- a_Pkt.WriteBEInt32(Boat.GetForwardDirection());
+ a_Pkt.WriteVarInt32(static_cast<UInt32>(Boat.GetForwardDirection()));
a_Pkt.WriteBEInt8(7); // Index 8: Damage taken
a_Pkt.WriteBEInt8(METADATA_TYPE_FLOAT);
@@ -3686,7 +3686,7 @@ void cProtocol_1_9_0::WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a
a_Pkt.WriteBEInt8(8); // Index 9: Type
a_Pkt.WriteBEInt8(METADATA_TYPE_VARINT);
- a_Pkt.WriteBEInt32(Boat.GetType());
+ a_Pkt.WriteVarInt32(static_cast<UInt32>(Boat.GetType()));
a_Pkt.WriteBEInt8(9); // Index 10: Right paddle turning
a_Pkt.WriteBEInt8(METADATA_TYPE_BOOL);