From ba0f51dc8cbad9bbc8708683fb823b72ee78ad78 Mon Sep 17 00:00:00 2001
From: Stanley Powers <41586666+repository@users.noreply.github.com>
Date: Tue, 9 Apr 2019 22:41:39 -0700
Subject: [PATCH] Update func info and use concatBytes
---
MinecraftClient/Protocol/Handlers/Protocol18.cs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/MinecraftClient/Protocol/Handlers/Protocol18.cs b/MinecraftClient/Protocol/Handlers/Protocol18.cs
index 1bf2051c..778801c1 100644
--- a/MinecraftClient/Protocol/Handlers/Protocol18.cs
+++ b/MinecraftClient/Protocol/Handlers/Protocol18.cs
@@ -1912,7 +1912,8 @@ namespace MinecraftClient.Protocol.Handlers
///
/// The new location of the player
/// True if the player is on the ground
- /// Yaw and pitch (optional and currently not parsed)
+ /// The new yaw of the player
+ /// The new pitch of the player
/// True if the location update was successfully sent
public bool SendLocationUpdate(Location location, bool onGround, float? yaw = null, float? pitch = null)
{
@@ -1922,7 +1923,7 @@ namespace MinecraftClient.Protocol.Handlers
byte[] yawpitch = new byte[0];
if (yaw != null && pitch != null)
{
- yawpitch = getFloat((float)yaw).Concat(getFloat((float)pitch)).ToArray();
+ yawpitch = concatBytes(getFloat((float)yaw), getFloat((float)pitch));
packetType = PacketOutgoingType.PlayerPositionAndLook;
}
else