mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
fix: remove spurious jump on vines in WalkTemplate and add pitch tracking
- WalkTemplate: remove OnClimbable jump/sprint logic that caused the player to jump when walking past vine blocks during flat traversal - TemplateHelper: add CalculatePitch() for computing the look angle toward a 3D target relative to eye height - All templates (Walk, Ascend, Descend, Climb, SprintJump): set physics.Pitch each tick so the player visually looks toward the current path target direction - McClient: sync playerPitch and set _yaw/_pitch after pathfinding ticks so rotation is included in position update packets sent to the server Made-with: Cursor
This commit is contained in:
parent
9046c61f95
commit
399c8cdc79
7 changed files with 25 additions and 13 deletions
|
|
@ -3285,6 +3285,9 @@ namespace MinecraftClient
|
|||
{
|
||||
pathSegmentManager.Tick(location, playerPhysics, physicsInput, world);
|
||||
playerYaw = playerPhysics.Yaw;
|
||||
playerPitch = playerPhysics.Pitch;
|
||||
_yaw = playerYaw;
|
||||
_pitch = playerPitch;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue