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
This commit is contained in:
ORelio 2019-04-13 08:28:59 +02:00
parent d0088e0dca
commit 342fadbfeb

View file

@ -468,7 +468,7 @@ namespace MinecraftClient
yaw = 90; yaw = 90;
break; break;
case Direction.North: case Direction.North:
yaw = 90; yaw = 180;
break; break;
case Direction.South: case Direction.South:
break; break;
@ -604,7 +604,7 @@ namespace MinecraftClient
{ {
Location next = path.Dequeue(); Location next = path.Dequeue();
steps = Movement.Move2Steps(location, next, ref motionY); 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 else
{ {