From 342fadbfeb4cad2436a6dc5ce19fc694c36c3935 Mon Sep 17 00:00:00 2001 From: ORelio Date: Sat, 13 Apr 2019 08:28:59 +0200 Subject: [PATCH] Fix /look north, improve pathfinding look Look command: /look north was looking west instead, now fixed Pathfinding: Look straight forward instead of looking to next block on ground --- MinecraftClient/McTcpClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MinecraftClient/McTcpClient.cs b/MinecraftClient/McTcpClient.cs index b7a15413..0f0fe0de 100644 --- a/MinecraftClient/McTcpClient.cs +++ b/MinecraftClient/McTcpClient.cs @@ -468,7 +468,7 @@ namespace MinecraftClient yaw = 90; break; case Direction.North: - yaw = 90; + yaw = 180; break; case Direction.South: break; @@ -604,7 +604,7 @@ namespace MinecraftClient { Location next = path.Dequeue(); steps = Movement.Move2Steps(location, next, ref motionY); - UpdateLocation(location, next); // Update yaw and pitch to look at next step + UpdateLocation(location, next + new Location(0, 1, 0)); // Update yaw and pitch to look at next step } else {